Commit 91af0cf4 authored by Krasimir Angelov's avatar Krasimir Angelov

Add tests for Project#pages_lookup_path

parent 5809400d
...@@ -5012,6 +5012,17 @@ describe Project do ...@@ -5012,6 +5012,17 @@ describe Project do
end end
end end
describe '#pages_lookup_path' do
let(:pages_domain) { build(:pages_domain) }
let(:project) { build(:project) }
it 'returns instance of Pages::LookupPath' do
expect(Pages::LookupPath).to receive(:new).with(project, domain: pages_domain).and_call_original
expect(project.pages_lookup_path(domain: pages_domain)).to be_a(Pages::LookupPath)
end
end
def rugged_config def rugged_config
rugged_repo(project.repository).config rugged_repo(project.repository).config
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment