Sha256: c57e966658cdd9f35d3437567feb833028c4ce10746bffa5c0d584cf94876d7e

Contents?: true

Size: 1 KB

Versions: 2

Compression:

Stored size: 1 KB

Contents

# encoding: UTF-8

require 'rspec'
require 'rspec/its'
Spec_dir = File.expand_path( File.dirname __FILE__ )
require 'pry-byebug' if ENV["DEBUG"]

# code coverage
require 'simplecov'
SimpleCov.start do
  add_filter "/vendor/"
  add_filter "/vendor.noindex/"
  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.mock_with :mocha

  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  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

2 entries across 2 versions & 1 rubygems

Version Path
sinatra-exstatic-assets-3.1.1 spec/spec_helper.rb
sinatra-exstatic-assets-3.1.0 spec/spec_helper.rb