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 725ca83 commit a171151
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
17 changes: 5 additions & 12 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,23 +80,15 @@ Style/ParenthesesAroundCondition:
Style/PreferredHashMethods:
Enabled: false

Minitest/AssertEmptyLiteral:
Enabled: true

Minitest/AssertNil:
Exclude:
- 'test/graphql/queries/personal_access_token_query_test.rb'
Enabled: true

Minitest/RefuteNil:
Enabled: true

Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Enabled: false

Layout/SpaceAroundOperators:
Enabled: true

Layout/SpaceAroundMethodCallOperator:
Enabled: true

Layout/EmptyLinesAroundAttributeAccessor:
Enabled: true

Expand All @@ -105,3 +97,4 @@ Layout/EmptyLineBetweenDefs:

Layout/FirstHashElementIndentation:
Enabled: false

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

test 'responds correctly for non-admin user if BMC is available' do
ProxyAPI::BMC.any_instance.stubs(:boot).
<<<<<<< HEAD
with({ :function => 'bootdevice', :device => 'bios' }).
returns({ "action" => "bios", "result" => true } .to_json)
=======
with(:function => 'bootdevice', :device => 'bios').
returns({ "action" => "bios", "result" => true }.to_json)
>>>>>>> 2b8d2789c (Fix Layout/SpaceAroundMethodCallOperator cop)
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 a171151

Please sign in to comment.