require 'rubygems' require 'active_support' require 'active_record' require 'action_controller' require 'action_view' require 'rspec/core' require 'rspec/rails' require 'database_cleaner' require 'factory_girl' # This is optional for end-user require "i18n/backend/fallbacks" I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) require 'banyan' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} Dir["#{File.dirname(__FILE__)}/factories/**/*.rb"].each {|f| require f} 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