From ac93cf4ff85ef195e8f6f151091a86f449a0be7a Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Wed, 15 Jan 2020 10:50:53 +0900 Subject: [PATCH] Update version guard fix up 98ef38ada43338c073f50a0093196f0356284625 --- spec/ruby/core/regexp/initialize_spec.rb | 4 ++-- spec/ruby/language/regexp_spec.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/ruby/core/regexp/initialize_spec.rb b/spec/ruby/core/regexp/initialize_spec.rb index ae188fb9c2..28255ad60f 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 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 5881afe6f1..cd71d54338 100644 --- a/spec/ruby/language/regexp_spec.rb +++ b/spec/ruby/language/regexp_spec.rb @@ -18,7 +18,7 @@ describe "Literal Regexps" do /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