summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-15 10:50:53 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-01-15 10:50:53 +0900
commitac93cf4ff85ef195e8f6f151091a86f449a0be7a (patch)
tree01fa1c924aa69754c7e84727dca9b678e979498f /spec
parent98ef38ada43338c073f50a0093196f0356284625 (diff)
Update version guard
fix up 98ef38ada43338c073f50a0093196f0356284625
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/regexp/initialize_spec.rb4
-rw-r--r--spec/ruby/language/regexp_spec.rb2
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