Skip to content

Commit 1ff776b

Browse files
committed
Make the tests more predictable
1 parent 2e2ebc6 commit 1ff776b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/foreman_rh_cloud/engine.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,6 @@ def self.ca_cert
257257
end
258258

259259
def self.on_prem_smart_proxy_features
260-
['insights']
260+
['Insights']
261261
end
262262
end

test/controllers/insights_cloud/api/cloud_request_controller_test.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ class CloudRequestControllerTest < ActionController::TestCase
5151
mock_composer = mock('composer')
5252
::JobInvocationComposer.expects(:for_feature).with do |feature, host_ids, params|
5353
feature == :rh_cloud_connector_run_playbook &&
54-
host_ids.first == host1.id &&
55-
host_ids.last == host2.id
54+
host_ids.sort == [host1.id, host2.id].sort
5655
end.returns(mock_composer)
5756
mock_composer.expects(:trigger!)
5857
mock_composer.expects(:job_invocation)

0 commit comments

Comments
 (0)