diff options
author | Nick Schonning <nschonni@gmail.com> | 2023-02-17 22:00:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-18 04:00:05 +0100 |
commit | a7db0b41cdb2e7ab50e638ec546b2c5dd2d633c7 (patch) | |
tree | e43a303679764952cc76f16a29495d479ee73115 /spec/controllers/api | |
parent | e5cf23cf3a45cee0abe2e3ad4de1b8c03bcb6f73 (diff) |
Autofix Rubocop Lint/ParenthesesAsGroupedExpression (#23682)
Diffstat (limited to 'spec/controllers/api')
-rw-r--r-- | spec/controllers/api/v1/admin/accounts_controller_spec.rb | 2 | ||||
-rw-r--r-- | spec/controllers/api/v2/admin/accounts_controller_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/api/v1/admin/accounts_controller_spec.rb b/spec/controllers/api/v1/admin/accounts_controller_spec.rb index 8d35b86cb..a4c509c60 100644 --- a/spec/controllers/api/v1/admin/accounts_controller_spec.rb +++ b/spec/controllers/api/v1/admin/accounts_controller_spec.rb @@ -65,7 +65,7 @@ RSpec.describe Api::V1::Admin::AccountsController, type: :controller do it "returns the correct accounts (#{expected_results.inspect})" do json = body_as_json - expect(json.map { |a| a[:id].to_i }).to eq (expected_results.map { |symbol| send(symbol).id }) + expect(json.map { |a| a[:id].to_i }).to eq(expected_results.map { |symbol| send(symbol).id }) end end end diff --git a/spec/controllers/api/v2/admin/accounts_controller_spec.rb b/spec/controllers/api/v2/admin/accounts_controller_spec.rb index 2508a9e05..1477049a1 100644 --- a/spec/controllers/api/v2/admin/accounts_controller_spec.rb +++ b/spec/controllers/api/v2/admin/accounts_controller_spec.rb @@ -65,7 +65,7 @@ RSpec.describe Api::V2::Admin::AccountsController, type: :controller do it "returns the correct accounts (#{expected_results.inspect})" do json = body_as_json - expect(json.map { |a| a[:id].to_i }).to eq (expected_results.map { |symbol| send(symbol).id }) + expect(json.map { |a| a[:id].to_i }).to eq(expected_results.map { |symbol| send(symbol).id }) end end end |