Sha256: 29004e852bc1a0bdbdc0e67dee268c230fbb5444bfbf8379643403154b3cf2fe
Contents?: true
Size: 745 Bytes
Versions: 3
Compression:
Stored size: 745 Bytes
Contents
ENV['RACK_ENV'] = 'test' require 'webmock/rspec' require "rack/test" require 'simplecov' require 'factory_girl' FactoryGirl.definition_file_paths = %w{./spec/factories} FactoryGirl.find_definitions SimpleCov.start require './app' require 'database_cleaner' # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir["./spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods 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