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 | |
parent | 98ef38ada43338c073f50a0093196f0356284625 (diff) | |
download | ruby-ac93cf4ff85ef195e8f6f151091a86f449a0be7a.tar.gz |
Update version guard
fix up 98ef38ada43338c073f50a0093196f0356284625
-rw-r--r-- | spec/ruby/core/regexp/initialize_spec.rb | 4 | ||||
-rw-r--r-- | 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 |