Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #11489 (new defect)

Opened 2 months ago

Last modified 2 months ago

[PATCH] test_distance_in_words failing

Reported by: miloops Assigned to: core
Priority: normal Milestone: 2.x
Component: ActionPack Version: edge
Severity: normal Keywords: tiny test
Cc: tiny test_distance_in_words

Description

I have failing this test in date_helpers_test.rb

1) Failure:

test_distance_in_words(DateHelperTest)

[template/date_helper_test.rb:74:in `assert_distance_of_time_in_words'

template/date_helper_test.rb:88:in `test_distance_in_words' ./../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `send' ./../lib/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:59:in `run']:

<"about 1 year"> expected but was <"12 months">.

Making this test utc based will work always as it is supposed to work.

Attachments

fix_date_helper_test.rb (452 bytes) - added by miloops on 03/31/08 21:07:00.

Change History

03/31/08 21:07:00 changed by miloops

  • attachment fix_date_helper_test.rb added.

03/31/08 21:07:38 changed by miloops

  • keywords set to tiny test.