Sha256: 01169aef32f942c2b9d8cd4e090a14ecaa6a3faf671c382f8ea688eb08fafe26
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
require 'rspec' require 'bundler/setup' require 'active_record' require 'chosen_template' ROOT_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..')) SPEC_DIR = File.expand_path(File.dirname(__FILE__)) Bundler.require(:test) Dir[File.join(SPEC_DIR, 'support', "**/*.rb")].each do |f| require f end RSpec.configure do |config| config.mock_with :rspec config.order = 'random' config.before :suite do DatabaseCleaner.clean_with :truncation end config.before :each do DatabaseCleaner.strategy = :transaction DatabaseCleaner.start Timecop.return end config.after do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chosen_template-0.0.1 | spec/spec_helper.rb |