Skip to content

Commit 560e50e

Browse files
fix specs
1 parent e52d71e commit 560e50e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/rails_helper.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
abort("The Rails environment is running in production mode!") if Rails.env.production?
88

99
require "rspec/rails"
10+
require "active_record"
11+
require "nulldb"
1012

1113
# begin
1214
# ActiveRecord::Migration.maintain_test_schema!
@@ -24,4 +26,7 @@
2426
config.infer_spec_type_from_file_location!
2527

2628
config.filter_rails_from_backtrace!
29+
30+
# Use the activerecord-nulldb-adapter to skip db dependency for specs
31+
ActiveRecord.establish_connection(adapter: :nulldb)
2732
end

0 commit comments

Comments
 (0)