Initial commit
This commit is contained in:
15
spec/support/db.rb
Normal file
15
spec/support/db.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
# require_with_metadata: true
|
||||
# frozen_string_literal: true
|
||||
|
||||
require_relative "db/helpers"
|
||||
require_relative "db/database_cleaner"
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.before :suite do
|
||||
Hanami.app.start :persistence
|
||||
end
|
||||
|
||||
config.include Test::DB::Helpers, :db
|
||||
|
||||
# config.include(Test::DB::FactoryHelper.new, factory: nil)
|
||||
end
|
Reference in New Issue
Block a user