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