Sha256: fe41ea8432adc09fc8e868b3470e72e89f05c5d8b0d5ba2b84d12fd264044829

Contents?: true

Size: 202 Bytes

Versions: 5

Compression:

Stored size: 202 Bytes

Contents

module TimeMatchSupport
  def localized_time_re(time_str)
    Regexp.new(Regexp.escape(localize(Time.zone.parse(time_str))))
  end
end

RSpec.configure do |config|
  config.include TimeMatchSupport
end

Version data entries

5 entries across 4 versions & 1 rubygems

Version Path
model_base_generators-0.3.6 lib/generators/model_base/templates/spec/support/time_match_support.rb
model_base_generators-0.3.5 lib/generators/model_base/templates/spec/support/time_match_support.rb
model_base_generators-0.3.4 lib/generators/model_base/templates/spec/support/time_match_support.rb
model_base_generators-0.3.3 example/spec/support/time_match_support.rb
model_base_generators-0.3.3 lib/generators/model_base/templates/spec/support/time_match_support.rb