Sha256: e9ce25a021c7c9f23e421ecb1ff0107c49ebb672703606e5450911bcafa8e03b
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
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
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
banyan-1.1.1 | spec/spec_helper.rb |
banyan-1.0.1 | spec/spec_helper.rb |