[前][次][番号順一覧][スレッド一覧]

ruby-changes:58394

From: Hiroshi <ko1@a...>
Date: Thu, 24 Oct 2019 18:52:10 +0900 (JST)
Subject: [ruby-changes:58394] 70ca56deda (master): Temporarily skipped with upstream changes of Date library.

https://git.ruby-lang.org/ruby.git/commit/?id=70ca56deda

From 70ca56dedaa7ced969269ed70112ebb8da653ec2 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Thu, 24 Oct 2019 18:50:57 +0900
Subject: Temporarily skipped with upstream changes of Date library.


diff --git a/spec/ruby/library/date/parse_spec.rb b/spec/ruby/library/date/parse_spec.rb
index 379847a..2e800f9 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/date/parse_spec.rb#L11
     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 aecaaab..10c10d7 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' https://github.com/ruby/ruby/blob/trunk/spec/ruby/library/date/valid_jd_spec.rb#L2
 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]