Sha256: d622c9acf96477da481fb2bb34e65e21e070680042fa7a793794cdadcca13d81
Contents?: true
Size: 974 Bytes
Versions: 5
Compression:
Stored size: 974 Bytes
Contents
require "rubygems" require "spork" Spork.prefork do ENV["RAILS_ENV"] ||= "test" require File.expand_path("../dummy/config/environment", __FILE__) require "rspec/rails" require "rspec/autorun" require "capybara/rails" require "database_cleaner" require "forgery" Dir[Rails.root.join("../support/**/*.rb")].each {|f| require f} DatabaseCleaner.strategy = :truncation RSpec.configure do |config| config.fail_fast = true config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = false config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.order = "random" config.before :each do DatabaseCleaner.start end config.after :each do DatabaseCleaner.clean end config.include Helpers end end Spork.each_run do require "factory_girl_rails" FactoryGirl.reload end
Version data entries
5 entries across 5 versions & 1 rubygems