diff --git a/publify_amazon_sidebar.gemspec b/publify_amazon_sidebar.gemspec index 9722bf3..15c0461 100644 --- a/publify_amazon_sidebar.gemspec +++ b/publify_amazon_sidebar.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rubocop-factory_bot", "~> 2.28.0" spec.add_development_dependency "rubocop-performance", "~> 1.26.0" spec.add_development_dependency "rubocop-rails", "~> 2.34.3" - spec.add_development_dependency "rubocop-rspec", "~> 3.8.0" + spec.add_development_dependency "rubocop-rspec", "~> 3.9.0" spec.add_development_dependency "rubocop-rspec_rails", "~> 2.32.0" spec.add_development_dependency "simplecov", "~> 0.22.0" spec.add_development_dependency "sqlite3", "~> 1.6" diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 487fc6f..247f221 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -25,13 +25,8 @@ # Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } # Checks for pending migrations and applies them before tests are run. -# If you are not using ActiveRecord, you can remove these lines. -begin - ActiveRecord::Migration.maintain_test_schema! -rescue ActiveRecord::PendingMigrationError => e - puts e.to_s.strip - exit 1 -end +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures