Module: EvelpidonTestHelpers::Date
- Included in:
- ActiveSupport::TestCase
- Defined in:
- lib/evelpidon_test_helpers/date.rb
Instance Method Summary collapse
-
#assert_equal_date(expected, actual) ⇒ Object
Asserts that the two
Time
orDateTime
refer to same Date/Month/Year.
Instance Method Details
#assert_equal_date(expected, actual) ⇒ Object
Asserts that the two Time
or DateTime
refer to same Date/Month/Year.
4 5 6 |
# File 'lib/evelpidon_test_helpers/date.rb', line 4 def assert_equal_date(expected, actual) assert_equal expected.strftime("%j%Y"), actual.strftime("%j%Y") end |