aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2014-02-18 09:52:42 +0100
committerXavier Noria <fxn@hashref.com>2014-02-18 09:52:42 +0100
commit24fa399c99316d8765c7ec374050b609e362b1c6 (patch)
tree043cf40b23c796b23ceb0c3d62e72d46015cf187
parent65a7c571050da47ab997a5a07fb9f1e2302bf348 (diff)
downloadrails-24fa399c99316d8765c7ec374050b609e362b1c6.tar.gz
rails-24fa399c99316d8765c7ec374050b609e362b1c6.tar.bz2
rails-24fa399c99316d8765c7ec374050b609e362b1c6.zip
adds a missing travel back
-rw-r--r--activesupport/test/time_zone_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/time_zone_test.rb b/activesupport/test/time_zone_test.rb
index 48bcfa6929..9fa2f45de5 100644
--- a/activesupport/test/time_zone_test.rb
+++ b/activesupport/test/time_zone_test.rb
@@ -130,10 +130,10 @@ class TimeZoneTest < ActiveSupport::TestCase
date = Date.new(2014, 2, 18)
time = date.midnight
- travel_to date
-
- assert_equal date, Date.current
- assert_equal time, Time.current
+ travel_to date do
+ assert_equal date, Date.current
+ assert_equal time, Time.current
+ end
end
end
end