Sha256: becc5be8e9aac033fedd3a68ca0d4c7a98f8f11f00fa23d265651bd5a4942b73
Contents?: true
Size: 752 Bytes
Versions: 3
Compression:
Stored size: 752 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' unless ENV['ON_TRAVIS'] require 'debugger' end 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.delete_all IndexHelper.create_all example.run IndexHelper.delete_all end config.after(:each) do Timecop.return end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
waistband-0.16.6 | spec/spec_helper.rb |
waistband-0.16.5 | spec/spec_helper.rb |
waistband-0.16.3 | spec/spec_helper.rb |