Permalink
Browse files

lock to the end of the day for formatted date

  • Loading branch information...
1 parent 3083e4a commit 1fa2c0ccb59996362ee2e688ad9cad357cfccaf7 @qrush qrush committed Aug 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/helpers/rubygems_helper_test.rb
@@ -24,7 +24,7 @@ class RubygemsHelperTest < ActionView::TestCase
end
should "show a nice formatted date" do
- Timecop.travel(Date.parse("2011-03-18")) do
+ Timecop.travel(Date.parse("2011-03-18").end_of_day) do
assert_equal "March 18, 2011", nice_date_for(DateTime.now)
end
end

0 comments on commit 1fa2c0c

Please sign in to comment.