Sha256: 6a6c9b883039197d3c1934a7f66e3fd8feb5e618d4c2dc688c2c686d2ac48e17
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
require 'rspec' require 'active_support/time' require 'timecop' require 'timeliness' require 'timeliness/core_ext' module TimelinessHelpers def parser Timeliness::Parser end def definitions Timeliness::Definitions end def parse(*args) Timeliness::Parser.parse(*args) end def current_date(options={}) Timeliness::Parser.send(:current_date, options) end def should_parse(*args) Timeliness::Parser.parse(*args).should_not be_nil end def should_not_parse(*args) Timeliness::Parser.parse(*args).should be_nil end end Rspec.configure do |c| c.mock_with :rspec c.include TimelinessHelpers end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timeliness-0.3.3 | spec/spec_helper.rb |