Skip to content

Commit

Permalink
Merge pull request #289 from borod108/spec/fix_broken_zone
Browse files Browse the repository at this point in the history
Fix broken spec

(cherry picked from commit 03f6895)
  • Loading branch information
masayag authored and simaishi committed Oct 10, 2018
1 parent 8312baf commit 380c597
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/models/manageiq/providers/redhat/infra_manager_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,9 @@
end

it "removes network manager" do
zone = FactoryGirl.create(:zone)
allow(MiqServer).to receive(:my_zone).and_return(zone.name)
allow(@ems).to receive(:ovirt_services).and_return(double(:collect_external_network_providers => {}))
allow(Zone).to receive_messages(:determine_queue_zone => "defaultzone")
expect(ExtManagementSystem.count).to eq(2)
@ems.ensure_managers
deliver_queue_messages
Expand Down

0 comments on commit 380c597

Please sign in to comment.