Sha256: b7f98feb2bf9f623be0b98597519c01829990178ef75e65fcd9d1102c74b6a92
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
ROOT_DIR = File.expand_path(File.join(File.dirname(__FILE__), '..')) SPEC_DIR = File.expand_path(File.dirname(__FILE__)) require File.join(SPEC_DIR, 'dummy', 'config', 'environment') require 'rspec' require 'rspec/rails' require 'bundler/setup' require 'chosen_template' Bundler.require(:test, :development) 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 Timecop.return end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chosen_template-1.0.0 | spec/spec_helper.rb |
chosen_template-0.1.0 | spec/spec_helper.rb |