Sha256: 5873bde34b14db732cdae7311e48c718f3f6a0a048e86b7ce2c9ad908638fc10
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
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) expect(Timeliness::Parser.parse(*args)).not_to be_nil end def should_not_parse(*args) expect(Timeliness::Parser.parse(*args)).to be_nil end end I18n.available_locales = ['en', 'es'] RSpec.configure do |c| c.mock_with :rspec c.include TimelinessHelpers c.after do Timeliness.configuration = Timeliness::Configuration.new end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
timeliness-0.4.5 | spec/timeliness_helper.rb |
timeliness-0.4.4 | spec/timeliness_helper.rb |
timeliness-0.4.3 | spec/timeliness_helper.rb |