We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 560e50e commit 0819085Copy full SHA for 0819085
spec/rails_helper.rb
@@ -7,8 +7,6 @@
7
abort("The Rails environment is running in production mode!") if Rails.env.production?
8
9
require "rspec/rails"
10
-require "active_record"
11
-require "nulldb"
12
13
# begin
14
# ActiveRecord::Migration.maintain_test_schema!
@@ -28,5 +26,5 @@
28
26
config.filter_rails_from_backtrace!
29
27
30
# Use the activerecord-nulldb-adapter to skip db dependency for specs
31
- ActiveRecord.establish_connection(adapter: :nulldb)
+ ActiveRecord::Base.establish_connection(adapter: :nulldb)
32
end
0 commit comments