Skip to content

Commit

Permalink
Making the rubocops happier
Browse files Browse the repository at this point in the history
  • Loading branch information
d-m-u committed Jan 31, 2019
1 parent 5ea8382 commit 76d14a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/services/dialog_local_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def determine_api_endpoints(obj, display_options = {})
end
when /ExtManagementSystem/
api_collection_name = "providers"
cancel_endpoint = "/ems_infra"
cancel_endpoint = obj.class.name.demodulize == "CloudManager" ? "/ems_cloud" : "/ems_infra"
when /MiqGroup/
api_collection_name = "groups"
cancel_endpoint = "/ops/explorer"
Expand Down
3 changes: 1 addition & 2 deletions spec/services/dialog_local_service_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@
let(:resource_action) { instance_double("ResourceAction", :id => 321, :dialog_id => 654) }
let(:display_options) { {} }

shared_examples_for "DialogLocalService#determine_dialog_locals_for_custom_button return value" do
|target_type, collection_name, finish_endpoint|
shared_examples_for "DialogLocalService#determine_dialog_locals_for_custom_button return value" do |target_type, collection_name, finish_endpoint|
it "returns a hash with the proper parameters" do
expect(service.determine_dialog_locals_for_custom_button(obj, button_name, resource_action, display_options))
.to eq(
Expand Down

0 comments on commit 76d14a9

Please sign in to comment.