test/helpers_test.rb in presenting-2.0.1 vs test/helpers_test.rb in presenting-2.0.2

- old
+ new

@@ -31,14 +31,14 @@ def test_presenting_a_hash_presents_the_values assert present({1 => true}).include?("<dd>True</dd>") end def test_presenting_a_time - assert_equal 'Fri, 13 Feb 2009 02:31:00 +0000', present(Time.parse('02/13/2009 02:31 AM UTC').to_time) + assert_equal 'Fri, 13 Feb 2009 02:31:00 +0000', present(Time.zone.parse('2009-02-13 02:31 AM UTC')) end def test_presenting_a_date - assert_equal '2009-02-13', present(Time.parse('02/13/2009 02:31 AM').to_date) + assert_equal '2009-02-13', present(Time.zone.parse('2009-02-13 02:31 AM UTC').to_date) end def test_presenting_a_string assert_equal "hello world", present("hello world") end