Sha256: 0903abbc786b4c72f8bfba5c806c03958fd2795ac2f50402443cc70f5bc4f843
Contents?: true
Size: 616 Bytes
Versions: 3
Compression:
Stored size: 616 Bytes
Contents
require 'rspec' require 'active_support/time' require 'timecop' require 'timeliness' 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
timeliness-0.3.2 | spec/spec_helper.rb |
timeliness-0.3.1 | spec/spec_helper.rb |
timeliness-0.3.0 | spec/spec_helper.rb |