Sha256: 4b90fe746a5126699c907d44f2d048c62a2e98c06c6dbbb3a9afe802941ab899
Contents?: true
Size: 693 Bytes
Versions: 8
Compression:
Stored size: 693 Bytes
Contents
# Configure Rails envinronment ENV["RAILS_ENV"] = "test" require "rails/all" require "rspec/rails" require 'database_cleaner' require "mini_auth" # Pull in the fake rails app require 'fake_app' # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } # Configure RSpec RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.mock_with :rspec config.before(:suite) do DatabaseCleaner.strategy = :transaction DatabaseCleaner.clean_with(:truncation, :except => %w()) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
8 entries across 8 versions & 1 rubygems