Sha256: df851ff6c7b2bfaffff18133ebb829c874ad590bef2b031be632a48170014e72
Contents?: true
Size: 340 Bytes
Versions: 15
Compression:
Stored size: 340 Bytes
Contents
module TimeComparisonMatchers extend RSpec::Matchers::DSL matcher :eq_time do |expected_time| match do |actual_time| actual_time.to_time.to_i == expected_time.to_time.to_i end failure_message do |actual_time| "expected #{actual_time.to_time} to be equal in time to #{expected_time.to_time}" end end end
Version data entries
15 entries across 15 versions & 1 rubygems