Sha256: b7ab8d7985d5239dde12286bebbb2a10fc15aa51ffa58b766cea8bf5bcdbcc7d
Contents?: true
Size: 645 Bytes
Versions: 3
Compression:
Stored size: 645 Bytes
Contents
# encoding: utf-8 ENV['RAILS_ENV'] = 'test' require File.expand_path('../dummy/config/environment.rb', __FILE__) require 'rspec/rails' require 'shoulda/matchers/integrations/rspec' require 'capybara/rspec' require 'database_cleaner' Rails.backtrace_cleaner.remove_silencers! Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rate_limiter-0.0.6 | spec/spec_helper.rb |
rate_limiter-0.0.5 | spec/spec_helper.rb |
rate_limiter-0.0.4 | spec/spec_helper.rb |