Sha256: 50ab564555fe7a7099e7289785c98a394fc795d38cafce574bbc34e411cacd6f
Contents?: true
Size: 676 Bytes
Versions: 6
Compression:
Stored size: 676 Bytes
Contents
ENV['RACK_ENV'] ||= 'test' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) APP_DIR ||= File.expand_path('../../', __FILE__) require 'waistband' require 'rspec' require 'timecop' require 'active_support/core_ext/integer/time' Dir["#{APP_DIR}/spec/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.before(:all) do Waistband.configure do |c| c.config_dir = "#{APP_DIR}/spec/config/waistband" end end config.around(:each) do |example| IndexHelper.create_all example.run IndexHelper.destroy_all end config.after(:each) do Timecop.return end end
Version data entries
6 entries across 6 versions & 1 rubygems