diff --git a/Gemfile b/Gemfile index 3831f69632..800a92b1fe 100644 --- a/Gemfile +++ b/Gemfile @@ -84,7 +84,7 @@ group :test do gem 'rspec-its' gem 'rspec-rails', '~> 8.0.1' gem 'rspec-wait' - gem 'rubocop', '~> 1.79.1' + gem 'rubocop', '~> 1.79.2' gem 'rubocop-capybara' gem 'rubocop-factory_bot' gem 'rubocop-rails', '~> 2.32' diff --git a/Gemfile.lock b/Gemfile.lock index 4489d8764a..398070724e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -428,7 +428,7 @@ GEM redis-client (>= 0.22.0) redis-client (0.25.1) connection_pool - regexp_parser (2.10.0) + regexp_parser (2.11.0) reline (0.6.1) io-console (~> 0.5) representable (3.2.0) @@ -480,7 +480,7 @@ GEM activesupport (>= 3.0.0) mustache (~> 1.0, >= 0.99.4) rspec (~> 3.0) - rubocop (1.79.1) + rubocop (1.79.2) json (~> 2.3) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.1.0) @@ -685,7 +685,7 @@ DEPENDENCIES rspec-rails (~> 8.0.1) rspec-wait rspec_api_documentation (>= 6.1.0) - rubocop (~> 1.79.1) + rubocop (~> 1.79.2) rubocop-capybara rubocop-factory_bot rubocop-rails (~> 2.32) diff --git a/lib/cloud_controller/check_stacks.rb b/lib/cloud_controller/check_stacks.rb index 5a70c65944..c91717e416 100644 --- a/lib/cloud_controller/check_stacks.rb +++ b/lib/cloud_controller/check_stacks.rb @@ -19,7 +19,7 @@ def validate_stacks def validate_stack(deprecated_stack) configured_stacks = @stack_config.stacks - deprecated_stack_in_config = (configured_stacks.find { |stack| stack['name'] == deprecated_stack }).present? + deprecated_stack_in_config = configured_stacks.find { |stack| stack['name'] == deprecated_stack }.present? return if deprecated_stack_in_config no_deprecated_stack_in_db = @db.fetch('SELECT 1 FROM stacks WHERE name LIKE ? ', deprecated_stack).empty? diff --git a/spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb b/spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb index ecf8caabec..d4cf65704d 100644 --- a/spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb +++ b/spec/unit/lib/cloud_controller/integer_array_serializer_spec.rb @@ -11,15 +11,15 @@ class Foo; extend IntegerArraySerializer; end let(:serializer) { IntegerArraySerializer.serializer } it 'raises an error when not passed an array' do - (expect { serializer.call('hello') }).to raise_error(ArgumentError, 'Integer array columns must be passed an array') + expect { serializer.call('hello') }.to raise_error(ArgumentError, 'Integer array columns must be passed an array') end it 'raises an error when not passed an array of integers' do - (expect { serializer.call([1, 2, 'derp']) }).to raise_error(ArgumentError, 'All members of the array must be integers') + expect { serializer.call([1, 2, 'derp']) }.to raise_error(ArgumentError, 'All members of the array must be integers') end it 'does not raise an error if passed nil' do - (expect { serializer.call(nil) }).not_to raise_error + expect { serializer.call(nil) }.not_to raise_error end it 'munges arrays to be in an expected comma-separated format' do