aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/time/new_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/time/new_spec.rb')
-rw-r--r--spec/ruby/core/time/new_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/time/new_spec.rb b/spec/ruby/core/time/new_spec.rb
index 3cafd46db7..1a2f93e2ef 100644
--- a/spec/ruby/core/time/new_spec.rb
+++ b/spec/ruby/core/time/new_spec.rb
@@ -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.8" 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