diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-01-15 10:50:53 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-01-15 10:50:53 +0900 |
commit | ac93cf4ff85ef195e8f6f151091a86f449a0be7a (patch) | |
tree | 01fa1c924aa69754c7e84727dca9b678e979498f /spec/ruby/core/regexp | |
parent | 98ef38ada43338c073f50a0093196f0356284625 (diff) | |
download | ruby-ac93cf4ff85ef195e8f6f151091a86f449a0be7a.tar.gz |
Update version guard
fix up 98ef38ada43338c073f50a0093196f0356284625
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 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 |