Skip to content

Commit

Permalink
chore: use available check_pending/check_all_pending
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraichen committed Oct 3, 2024
1 parent e7c4f17 commit e0be277
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/integration/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@
# in spec/support/ and its subdirectories.
Dir[File.expand_path('support/**/*.rb', __dir__)].sort.each {|f| require f }

ActiveRecord::Migration.check_all_pending!
if ActiveRecord::Migration.respond_to?(:check_all_pending!)
ActiveRecord::Migration.check_all_pending!
else
ActiveRecord::Migration.check_pending!
end

RSpec.configure do |config|
# If you're not using ActiveRecord, or you'd prefer not to run each of your
Expand Down

0 comments on commit e0be277

Please sign in to comment.