Skip to content

Commit

Permalink
minor updates
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Jun 13, 2024
1 parent 424bea5 commit 9d0f7b7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ RSpec/MultipleExpectations:
RSpec/ExampleLength:
Max: 35

RSpec/FilePath:
Enabled: false

RSpec/MultipleMemoizedHelpers:
Max: 10

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions spec/lib/lokalise_rails/global_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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=)
Expand Down

0 comments on commit 9d0f7b7

Please sign in to comment.