Fix tests
This commit is contained in:
parent
3e3db7cdb2
commit
86250c8125
1 changed files with 4 additions and 1 deletions
|
@ -29,7 +29,10 @@ require 'rspec/rails'
|
||||||
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
# directory. Alternatively, in the individual `*_spec.rb` files, manually
|
||||||
# require only the support files necessary.
|
# require only the support files necessary.
|
||||||
#
|
#
|
||||||
Dir[Rails.root.join('spec', 'support', '**', '*.rb')].each { |f| require f }
|
require_relative 'support/shoulda_matchers'
|
||||||
|
require_relative 'support/faker'
|
||||||
|
require_relative 'support/factory_bot'
|
||||||
|
require_relative 'support/database_cleaner'
|
||||||
|
|
||||||
# Checks for pending migrations and applies them before tests are run.
|
# Checks for pending migrations and applies them before tests are run.
|
||||||
# If you are not using ActiveRecord, you can remove these lines.
|
# If you are not using ActiveRecord, you can remove these lines.
|
||||||
|
|
Reference in a new issue