diff --git a/.rubocop.yml b/.rubocop.yml index 64c0c3e..3b4da17 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -47,5 +47,13 @@ RSpec/ExampleLength: RSpec/MultipleExpectations: Enabled: false +RSpec/Output: + Exclude: + - spec/spec_helper.rb + +Naming/PredicateMethod: + Exclude: + - spec/spec_helper.rb + Style/HashSyntax: Enabled: false # We still want to support older versions of Ruby diff --git a/Gemfile b/Gemfile index b68e534..33be87a 100644 --- a/Gemfile +++ b/Gemfile @@ -15,8 +15,8 @@ gem 'rake', '~> 13.0' gem 'rspec', '~> 3.9' gem 'rspec_junit_formatter', '~> 0.4' gem 'rspec-legacy_formatters', '~> 1.0' # For codecov formatter -gem 'rubocop', '1.72.2' -gem 'rubocop-rspec', '~> 3.6', require: false +gem 'rubocop', '~> 1.86' +gem 'rubocop-rspec', '~> 3.9', require: false gem 'simplecov', '~> 0.18' gem 'timecop', '~> 0.9' gem 'webmock', '~> 3.8' diff --git a/spec/typesense/collection_spec.rb b/spec/typesense/collection_spec.rb index 373d23d..ed36ec5 100644 --- a/spec/typesense/collection_spec.rb +++ b/spec/typesense/collection_spec.rb @@ -52,7 +52,7 @@ it 'updates the specified collection' do update_schema = { 'fields' => [ - 'name' => 'field', 'drop' => true + { 'name' => 'field', 'drop' => true } ] } stub_request(:patch, Typesense::ApiCall.new(typesense.configuration).send(:uri_for, '/collections/companies', typesense.configuration.nodes[0]))