We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e52d71e commit 560e50eCopy full SHA for 560e50e
spec/rails_helper.rb
@@ -7,6 +7,8 @@
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!
@@ -24,4 +26,7 @@
24
26
config.infer_spec_type_from_file_location!
25
27
28
config.filter_rails_from_backtrace!
29
+
30
+ # Use the activerecord-nulldb-adapter to skip db dependency for specs
31
+ ActiveRecord.establish_connection(adapter: :nulldb)
32
end
0 commit comments