summaryrefslogtreecommitdiff
path: root/spec/ruby/core/time/at_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/at_spec.rb')
-rw-r--r--spec/ruby/core/time/at_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/time/at_spec.rb b/spec/ruby/core/time/at_spec.rb
index 592b331a28..8434e8dd16 100644
--- a/spec/ruby/core/time/at_spec.rb
+++ b/spec/ruby/core/time/at_spec.rb
@@ -235,14 +235,14 @@ describe "Time.at" do
end
it "could be a timezone object" do
- zone = TimeSpecs::TimezoneWithName.new(name: "Asia/Colombo", offset: (5*3600+30*60))
+ zone = TimeSpecs::TimezoneWithName.new(name: "Asia/Colombo")
time = Time.at(@epoch_time, in: zone)
time.utc_offset.should == 5*3600+30*60
time.zone.should == zone
time.to_i.should == @epoch_time
- zone = TimeSpecs::TimezoneWithName.new(name: "PST", offset: (-9*60*60))
+ zone = TimeSpecs::TimezoneWithName.new(name: "PST")
time = Time.at(@epoch_time, in: zone)
time.utc_offset.should == -9*60*60