diff --git a/.rubocop.yml b/.rubocop.yml index 60b503f..422ad1c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -72,9 +72,6 @@ RSpec/MultipleExpectations: RSpec/ExampleLength: Max: 35 -RSpec/FilePath: - Enabled: false - RSpec/MultipleMemoizedHelpers: Max: 10 diff --git a/Gemfile b/Gemfile index 37da4ad..239321f 100644 --- a/Gemfile +++ b/Gemfile @@ -12,7 +12,7 @@ group :test do gem 'rubocop', '~> 1.0' gem 'rubocop-performance', '~> 1.5' gem 'rubocop-rake', '~> 0.6' - gem 'rubocop-rspec', '~> 2.6' + gem 'rubocop-rspec', '~> 3.0' gem 'simplecov', '~> 0.22' gem 'simplecov-lcov', '~> 0.8' gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] diff --git a/spec/lib/lokalise_rails/global_config_spec.rb b/spec/lib/lokalise_rails/global_config_spec.rb index 2c9a638..14b1810 100644 --- a/spec/lib/lokalise_rails/global_config_spec.rb +++ b/spec/lib/lokalise_rails/global_config_spec.rb @@ -120,21 +120,21 @@ end it 'is possible to set skip_file_export' do - cond = ->(f) { f.nil? } + cond = lambda(&:nil?) allow(fake_class).to receive(:skip_file_export=).with(cond) fake_class.skip_file_export = cond expect(fake_class).to have_received(:skip_file_export=) end it 'is possible to set translations_loader' do - runner = ->(f) { f.to_json } + runner = lambda(&:to_json) allow(fake_class).to receive(:translations_loader=).with(runner) fake_class.translations_loader = runner expect(fake_class).to have_received(:translations_loader=) end it 'is possible to set translations_converter' do - runner = ->(f) { f.to_json } + runner = lambda(&:to_json) allow(fake_class).to receive(:translations_converter=).with(runner) fake_class.translations_converter = runner expect(fake_class).to have_received(:translations_converter=)