Sha256: 8e9234e8ea65bf8fe0f40a118b907693867628d4f030ac40c917ef4f21d1881a
Contents?: true
Size: 1010 Bytes
Versions: 17
Compression:
Stored size: 1010 Bytes
Contents
# Configure Rails Envinronment ENV["RAILS_ENV"] = "test" require 'devise_masquerade' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rails/test_help' require 'rspec/rails' require 'factory_girl' require 'database_cleaner' Rails.backtrace_cleaner.remove_silencers! Dir[File.join(File.dirname(__FILE__), '..', "spec/support/*.rb")].each {|f| require f} Dir[File.join(File.dirname(__FILE__), '..', "spec/orm/*.rb")].each {|f| require f} RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.include Devise::TestHelpers, :type => :controller config.include Warden::Test::Helpers config.include FactoryGirl::Syntax::Methods config.include Authentication config.mock_with :rspec 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
17 entries across 17 versions & 1 rubygems