Skip to content

Commit

Permalink
Fix Layout/SpaceAroundMethodCallOperator cop
Browse files Browse the repository at this point in the history
  • Loading branch information
archanaserver committed Feb 21, 2024
1 parent d07f4d5 commit c939c9c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ Style/PreferredHashMethods:
Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceAroundMethodCallOperator:
Enabled: true

Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true

Expand Down
4 changes: 2 additions & 2 deletions test/controllers/api/v2/hosts_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,8 @@ def initialize_proxy_ops

test 'responds correctly for non-admin user if BMC is available' do
ProxyAPI::BMC.any_instance.stubs(:boot).
with({ :function => 'bootdevice', :device => 'bios' }).
returns({ "action" => "bios", "result" => true } .to_json)
with(:function => 'bootdevice', :device => 'bios').
returns({ "action" => "bios", "result" => true }.to_json)
put :boot, params: { :id => @bmchost.to_param, :device => 'bios' },
session: set_session_user.merge(:user => @one.id)
assert_response :success
Expand Down
2 changes: 1 addition & 1 deletion test/models/compute_resources/ovirt_test.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require 'test_helper'
require 'models/compute_resources/compute_resource_test_helpers'

class Foreman::Model:: OvirtTest < ActiveSupport::TestCase
class Foreman::Model::OvirtTest < ActiveSupport::TestCase
include ComputeResourceTestHelpers

should validate_presence_of(:url)
Expand Down

0 comments on commit c939c9c

Please sign in to comment.