aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-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