diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 0ec878e146..2220a0bf60 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -810,13 +810,14 @@ Style/ClassAndModuleChildren: - 'lib/open_food_network/locking.rb' - 'spec/models/spree/payment_method_spec.rb' -# Offense count: 1 +# Offense count: 2 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: - '.simplecov' + - 'tmp/stimulus_reflex_installer/working/development.rb' # Offense count: 6 # This cop supports unsafe autocorrection (--autocorrect-all). diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake index 3ee505f731..0c2183c6e9 100644 --- a/lib/tasks/karma.rake +++ b/lib/tasks/karma.rake @@ -39,6 +39,6 @@ namespace :karma do I18n::JS::DEFAULT_EXPORT_DIR_PATH.replace('tmp/javascripts') I18n::JS.export - "#{Rails.root.join(I18n::JS::DEFAULT_EXPORT_DIR_PATH, 'translations.js')}" + Rails.root.join(I18n::JS::DEFAULT_EXPORT_DIR_PATH, 'translations.js').to_s end end diff --git a/spec/base_spec_helper.rb b/spec/base_spec_helper.rb index fcb68b76d6..8a6e29a22e 100644 --- a/spec/base_spec_helper.rb +++ b/spec/base_spec_helper.rb @@ -60,7 +60,7 @@ InvisibleCaptcha.timestamp_enabled = false RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{Rails.root.join('spec/fixtures')}" + config.fixture_path = Rails.root.join('spec/fixtures').to_s # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false