Sha256: 27dc0acfb562906550afabe0a6159b65c6fbc4936741c5128a778fc1ada7fddd

Contents?: true

Size: 623 Bytes

Versions: 17

Compression:

Stored size: 623 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.before(:all) do |c|
    IndexHelper.prepare!
  end

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

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
waistband-0.7.4 spec/spec_helper.rb
waistband-0.7.3 spec/spec_helper.rb
waistband-0.7.1 spec/spec_helper.rb
waistband-0.7.0 spec/spec_helper.rb
waistband-0.4.2 spec/spec_helper.rb
waistband-0.4.1 spec/spec_helper.rb
waistband-0.4.0 spec/spec_helper.rb
waistband-0.3.2 spec/spec_helper.rb
waistband-0.3.1 spec/spec_helper.rb
waistband-0.3.0 spec/spec_helper.rb
waistband-0.2.5 spec/spec_helper.rb
waistband-0.2.4 spec/spec_helper.rb
waistband-0.2.3 spec/spec_helper.rb
waistband-0.2.2 spec/spec_helper.rb
waistband-0.2.1 spec/spec_helper.rb
waistband-0.2.0 spec/spec_helper.rb
waistband-0.1.1 spec/spec_helper.rb