Sha256: 4cb3508927b7131ee0f59fc55302ade2a01f62787b55a4ff4dfdbc8f3471b709
Contents?: true
Size: 873 Bytes
Versions: 2
Compression:
Stored size: 873 Bytes
Contents
ENV["RAILS_ENV"] = 'test' # Require dummy Rails app require File.expand_path("../../spec/dummy/config/environment", __FILE__) require 'database_cleaner' require 'rspec/rails' require 'rspec/autorun' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} DatabaseCleaner.strategy = :transaction RSpec.configure do |config| # If true, the base class of anonymous controllers will be inferred # automatically. This will be the default behavior in future versions of # rspec-rails. config.infer_base_class_for_anonymous_controllers = false config.before :suite do 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 |
---|---|
paranoia_uniqueness_validator-1.0.0 | spec/spec_helper.rb |
paranoia_uniqueness_validator-0.1.0 | spec/spec_helper.rb |