BikeBikeBike/spec/support/postgresql.rb
Cesidio Di Landa 7eaa45fe41 Bumped VERSION to 0.1.4
Updated CHANGELOG
* Added postgresql spec configuration
* Using database_cleaner gem from master branch
2013-04-20 12:58:42 +02:00

16 lines
271 B
Ruby

RSpec.configure do |config|
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