1
0
Fork 0
mirror of https://github.com/kbparagua/paloma synced 2023-03-27 23:21:17 -04:00
paloma/spec/spec_helper.rb

22 lines
343 B
Ruby
Raw Normal View History

2012-12-17 23:26:30 -05:00
require 'rails'
2012-12-17 05:50:23 -05:00
require 'bundler/setup'
Bundler.require
require 'sample_app/init'
2012-12-18 05:39:33 -05:00
require 'rspec/rails'
require 'capybara/rspec'
require 'database_cleaner'
2012-12-19 01:59:38 -05:00
RSpec.configure do |config|
config.before :each do
DatabaseCleaner.strategy = :truncation
DatabaseCleaner.start
end
config.after do
DatabaseCleaner.clean
end
end