diff options
author | Benoit Daloze <[email protected]> | 2020-09-15 21:54:31 +0200 |
---|---|---|
committer | Benoit Daloze <[email protected]> | 2020-09-15 21:56:00 +0200 |
commit | 1af0319fc88688bc5dd5e49eecdb8b534ead9991 (patch) | |
tree | 352b35490e64bc961dc005d679392106d6be90b9 /spec/ruby/core/regexp | |
parent | 9b535f3ff7c2f48e34dd44564df7adc723b81276 (diff) |
2.8 -> 3.0 in specs
Diffstat (limited to 'spec/ruby/core/regexp')
-rw-r--r-- | spec/ruby/core/regexp/initialize_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/regexp/initialize_spec.rb b/spec/ruby/core/regexp/initialize_spec.rb index 28255ad60f..772a233e82 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.8" do + ruby_version_is ""..."3.0" do it "raises a SecurityError on a Regexp literal" do -> { //.send(:initialize, "") }.should raise_error(SecurityError) end end - ruby_version_is "2.8" do + ruby_version_is "3.0" do it "raises a FrozenError on a Regexp literal" do -> { //.send(:initialize, "") }.should raise_error(FrozenError) end |