Sha256: eeca4e91ca2aac69c5c224f7ca9fb6555eaae7567ff310aa54eccc599fb65b57
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
require 'simplecov' module SimpleCov::Configuration def clean_filters @filters = [] end end SimpleCov.configure do clean_filters load_adapter 'test_frameworks' end ENV["COVERAGE"] && SimpleCov.start do add_filter "/.rvm/" end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'rspec/its' require 'timecop' require 'daterange' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.filter_run :focus => true config.filter_run_excluding :skip => true config.run_all_when_everything_filtered = true config.around(:each) do |example| Timecop.travel(DateTime.new(2014, 1, 12, 12, 0, 1)) do example.run end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
daterange-1.0.0 | spec/spec_helper.rb |