Commit 5809400d authored by Krasimir Angelov's avatar Krasimir Angelov

Add tests for PagesDomain#pages_virtual_domain

parent 268c698f
...@@ -556,4 +556,16 @@ describe PagesDomain do ...@@ -556,4 +556,16 @@ describe PagesDomain do
) )
end end
end end
describe '.pages_virtual_domain' do
let(:project) { build(:project) }
subject(:pages_domain) { build(:pages_domain, project: project) }
it 'returns instance of Pages::VirtualDomain' do
expect(Pages::VirtualDomain).to receive(:new).with([project], domain: pages_domain).and_call_original
expect(pages_domain.pages_virtual_domain).to be_a(Pages::VirtualDomain)
end
end
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