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

ruby-changes:59705

From: Kazuhiro <ko1@a...>
Date: Wed, 15 Jan 2020 11:00:54 +0900 (JST)
Subject: [ruby-changes:59705] ac93cf4ff8 (master): Update version guard

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

From ac93cf4ff85ef195e8f6f151091a86f449a0be7a Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Wed, 15 Jan 2020 10:50:53 +0900
Subject: Update version guard

fix up 98ef38ada43338c073f50a0093196f0356284625

diff --git a/spec/ruby/core/regexp/initialize_spec.rb b/spec/ruby/core/regexp/initialize_spec.rb
index ae188fb..28255ad 100644
--- a/spec/ruby/core/regexp/initialize_spec.rb
+++ b/spec/ruby/core/regexp/initialize_spec.rb
@@ -5,13 +5,13 @@ describe "Regexp#initialize" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/regexp/initialize_spec.rb#L5
     Regexp.should have_private_method(:initialize)
   end
 
-  ruby_version_is ""..."2.7" do
+  ruby_version_is ""..."2.8" do
     it "raises a SecurityError on a Regexp literal" do
       -> { //.send(:initialize, "") }.should raise_error(SecurityError)
     end
   end
 
-  ruby_version_is "2.7" do
+  ruby_version_is "2.8" do
     it "raises a FrozenError on a Regexp literal" do
       -> { //.send(:initialize, "") }.should raise_error(FrozenError)
     end
diff --git a/spec/ruby/language/regexp_spec.rb b/spec/ruby/language/regexp_spec.rb
index 5881afe..cd71d54 100644
--- a/spec/ruby/language/regexp_spec.rb
+++ b/spec/ruby/language/regexp_spec.rb
@@ -18,7 +18,7 @@ describe "Literal Regexps" do https://github.com/ruby/ruby/blob/trunk/spec/ruby/language/regexp_spec.rb#L18
     /Hello/.should be_kind_of(Regexp)
   end
 
-  ruby_version_is "2.7" do
+  ruby_version_is "2.8" do
     it "is frozen" do
       /Hello/.frozen?.should == true
     end
-- 
cgit v0.10.2


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

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