Sha256: 8870bf1b0aa1263660cc60217facc36e067da3c28cbcfcc4399314d03ba64fe4

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

# encoding: UTF-8

require 'rspec'
Spec_dir = File.expand_path( File.dirname __FILE__ )


# code coverage
require 'simplecov'
SimpleCov.start do
  add_filter "/vendor/"
  add_filter "/bin/"
end

require "rack/test"
ENV['RACK_ENV'] ||= 'test'
ENV["EXPECT_WITH"] ||= "racktest"


require "logger"
logger = Logger.new STDOUT
logger.level = Logger::DEBUG
logger.datetime_format = '%a %d-%m-%Y %H%M '
LOgger = logger


Dir[ File.join( Spec_dir, "/support/**/*.rb")].each do |f| 
  logger.info "requiring #{f}"
  require f
end

require 'rack/test/accepts'
require 'timecop'

RSpec.configure do |config|
  config.treat_symbols_as_metadata_keys_with_true_values = true

  config.include Rack::Test::Accepts, :type => :request

  config.before(:each, :time_sensitive => true) do
    Timecop.freeze "2013-03-31 00:00:00 0000"
  end

  config.after(:each, :time_sensitive => true) do
    Timecop.return
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sinatra-exstatic-assets-2.0.1 spec/spec_helper.rb