Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.409 kb
require 'database_cleaner'
DB = 'test'
RSpec.configure do |config|
Dir[File.expand_path(__FILE__ + '/../..') + '/domain/**/*.rb'].each do |f|
require f
end
config.before(:suite) do
DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with(:truncation)
end
config.before(:each) do
DatabaseCleaner.start
end
config.after(:each) do
DatabaseCleaner.clean
end
end
Jump to Line
Something went wrong with that request. Please try again.