diff options
author | nagachika <nagachika@ruby-lang.org> | 2020-07-23 11:33:11 +0900 |
---|---|---|
committer | nagachika <nagachika@ruby-lang.org> | 2020-07-23 11:33:11 +0900 |
commit | 4be9bf1f67b997fc519625d56a93b8a68a70d124 (patch) | |
tree | ba256925c66e9e34905e22e8130db0321a88f8f1 /spec | |
parent | 13d2ab0d88bbf72ed310efaec6edc46dd96fdb4d (diff) |
merge revision(s) 99a9c3fe2eaab8157765d792dc871da6daea0327: [Backport #17024]
Fixed yday and wday with timezone [Bug #17024]
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/time/new_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/core/time/new_spec.rb b/spec/ruby/core/time/new_spec.rb index a5cfa2a7df..064e03f056 100644 --- a/spec/ruby/core/time/new_spec.rb +++ b/spec/ruby/core/time/new_spec.rb @@ -121,7 +121,7 @@ describe "Time.new with a utc_offset argument" do end end -ruby_version_is "2.6" do +ruby_version_is "2.7" do describe "Time.new with a timezone argument" do it "returns a Time in the timezone" do zone = TimeSpecs::Timezone.new(offset: (5*3600+30*60)) @@ -129,6 +129,10 @@ ruby_version_is "2.6" do time.zone.should == zone time.utc_offset.should == 5*3600+30*60 + ruby_version_is "2.7" do + time.wday.should == 6 + time.yday.should == 1 + end end it "accepts timezone argument that must have #local_to_utc and #utc_to_local methods" do |