summaryrefslogtreecommitdiff
path: root/spec/ruby/library/date
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 18:50:57 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-10-24 18:50:57 +0900
commit70ca56dedaa7ced969269ed70112ebb8da653ec2 (patch)
tree15dbc8b7dd087099d55d8d24ba70fc64607f268a /spec/ruby/library/date
parent487d96c6b1cd7f5d415dba27a9684b30dfa9afed (diff)
Temporarily skipped with upstream changes of Date library.
Diffstat (limited to 'spec/ruby/library/date')
-rw-r--r--spec/ruby/library/date/parse_spec.rb8
-rw-r--r--spec/ruby/library/date/valid_jd_spec.rb6
2 files changed, 9 insertions, 5 deletions
diff --git a/spec/ruby/library/date/parse_spec.rb b/spec/ruby/library/date/parse_spec.rb
index 379847a6fd..2e800f9818 100644
--- a/spec/ruby/library/date/parse_spec.rb
+++ b/spec/ruby/library/date/parse_spec.rb
@@ -11,9 +11,11 @@ describe "Date#parse" do
d.should == Date.commercial(d.cwyear, d.cweek, 5)
end
- it "parses a month name into a Date object" do
- d = Date.parse("october")
- d.should == Date.civil(Date.today.year, 10)
+ ruby_version_is ''...'2.7' do
+ it "parses a month name into a Date object" do
+ d = Date.parse("october")
+ d.should == Date.civil(Date.today.year, 10)
+ end
end
it "parses a month day into a Date object" do
diff --git a/spec/ruby/library/date/valid_jd_spec.rb b/spec/ruby/library/date/valid_jd_spec.rb
index aecaaabcf4..10c10d7525 100644
--- a/spec/ruby/library/date/valid_jd_spec.rb
+++ b/spec/ruby/library/date/valid_jd_spec.rb
@@ -2,8 +2,10 @@ require_relative '../../spec_helper'
require_relative 'shared/valid_jd'
require 'date'
-describe "Date.valid_jd?" do
+ruby_version_is ''...'2.7' do
+ describe "Date.valid_jd?" do
- it_behaves_like :date_valid_jd?, :valid_jd?
+ it_behaves_like :date_valid_jd?, :valid_jd?
+ end
end