spec/spec_helper.rb in sinatra-exstatic-assets-3.0.0 vs spec/spec_helper.rb in sinatra-exstatic-assets-3.1.0

- old
+ new

@@ -1,16 +1,17 @@ # 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' @@ -31,10 +32,14 @@ require 'rack/test/accepts' require 'timecop' RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true + 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"