Sha256: 111cd6b3505dbf2f3dfd5c0f4f2738e220428c1ce6f3aa8a640c2ff8cb6e2e40
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' require File.expand_path("../dummy/config/environment.rb", __FILE__) require 'rspec/rails' require 'database_cleaner' Rails.backtrace_cleaner.remove_silencers! Capybara.javascript_driver = :webkit Capybara.default_max_wait_time = 5 # Load support files Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec config.use_transactional_fixtures = false config.infer_base_class_for_anonymous_controllers = false config.order = "random" config.before(:suite) do DatabaseCleaner.clean_with :truncation DatabaseCleaner.strategy = :transaction end config.before(:each) { DatabaseCleaner.start } config.after(:each) { DatabaseCleaner.clean } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loker-shopping-cart-0.1.3 | spec/spec_helper.rb |
loker-shopping-cart-0.1.2 | spec/spec_helper.rb |
loker-shopping-cart-0.1.1 | spec/spec_helper.rb |