Skip to content

Commit

Permalink
Merge pull request #7052 from mzazrivec/use_allow_instead_of_expect_i…
Browse files Browse the repository at this point in the history
…n_ems_container_controller

EmsContainerController: use allows instead of expect
(cherry picked from commit a50e9b6)
  • Loading branch information
skateman authored and simaishi committed May 20, 2020
1 parent ffec492 commit f1fae0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/controllers/ems_container_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
EvmSpecHelper.create_guid_miq_server_zone
# set kubeclient to return a mock route.
allow(Kubeclient::Client).to receive(:new).and_return(mock_client)
expect(mock_client).to receive(:discover).at_least(:once)
allow(mock_client).to receive(:discover)
end

it "detects openshift hawkular metric route" do
Expand Down

0 comments on commit f1fae0d

Please sign in to comment.