Skip to content

Commit

Permalink
Fix broken spec
Browse files Browse the repository at this point in the history
Fixing a test that was broken due to a PR that added validation to zone
when putting a task into MiqQueue. (ManageIQ/manageiq#17987)
  • Loading branch information
Boris Odnopozov committed Sep 16, 2018
1 parent ef25eb6 commit de400fd
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 de400fd

Please sign in to comment.