Sha256: b7bd4396229c639fa06ac387a1b08267a9eae24cd8a43d2afaa401a5d6237973

Contents?: true

Size: 675 Bytes

Versions: 14

Compression:

Stored size: 675 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.delete_all
  end

  config.after(:each) do
    Timecop.return
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
waistband-0.11.2 spec/spec_helper.rb
waistband-0.11.1 spec/spec_helper.rb
waistband-0.11.0 spec/spec_helper.rb
waistband-0.10.0 spec/spec_helper.rb
waistband-0.9.9 spec/spec_helper.rb
waistband-0.9.8 spec/spec_helper.rb
waistband-0.9.7 spec/spec_helper.rb
waistband-0.9.6 spec/spec_helper.rb
waistband-0.9.5 spec/spec_helper.rb
waistband-0.9.4 spec/spec_helper.rb
waistband-0.9.3 spec/spec_helper.rb
waistband-0.9.2 spec/spec_helper.rb
waistband-0.9.1 spec/spec_helper.rb
waistband-0.9.0 spec/spec_helper.rb