aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/time/floor_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/floor_spec.rb')
-rw-r--r--spec/ruby/core/time/floor_spec.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/ruby/core/time/floor_spec.rb b/spec/ruby/core/time/floor_spec.rb
index 763ed1ba51..a19585b787 100644
--- a/spec/ruby/core/time/floor_spec.rb
+++ b/spec/ruby/core/time/floor_spec.rb
@@ -28,10 +28,11 @@ ruby_version_is "2.7" do
it "copies own timezone to the returning value" do
@time.zone.should == @time.floor.zone
- with_timezone "JST-9" do
- time = Time.at 0, 1
- time.zone.should == time.floor.zone
+ time = with_timezone "JST-9" do
+ Time.at 0, 1
end
+
+ time.zone.should == time.floor.zone
end
end
end