Skip to content

Commit

Permalink
Merge pull request #2300 from AlonaKaplan/ui_test_fix
Browse files Browse the repository at this point in the history
Fix broken tests
  • Loading branch information
martinpovolny authored Oct 5, 2017
2 parents dd7aa97 + f64048d commit 04ea366
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion spec/controllers/ems_infra_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -607,9 +607,15 @@
before do
allow(controller).to receive(:check_privileges).and_return(true)
allow(controller).to receive(:assert_privileges).and_return(true)
login_as FactoryGirl.create(:user, :features => "ems_infra_new")
ems = FactoryGirl.build(:user, :features => "ems_infra_new")
login_as ems
allow_any_instance_of(ManageIQ::Providers::Redhat::InfraManager)
.to receive(:supported_api_versions).and_return([3, 4])
ovirt_service = ManageIQ::Providers::Redhat::InfraManager::OvirtServices::Strategies::V4
allow_any_instance_of(ovirt_service)
.to receive(:collect_external_network_providers).and_return([])
ems.save

end

render_views
Expand Down

0 comments on commit 04ea366

Please sign in to comment.