summaryrefslogtreecommitdiff
path: root/spec/ruby/core/range/first_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range/first_spec.rb')
-rw-r--r--spec/ruby/core/range/first_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/core/range/first_spec.rb b/spec/ruby/core/range/first_spec.rb
index c5c90800ac..2af935f439 100644
--- a/spec/ruby/core/range/first_spec.rb
+++ b/spec/ruby/core/range/first_spec.rb
@@ -47,9 +47,7 @@ describe "Range#first" do
-> { (2..3).first("1") }.should raise_error(TypeError)
end
- ruby_version_is "2.7" do
- it "raises a RangeError when called on an beginless range" do
- -> { eval("(..1)").first }.should raise_error(RangeError)
- end
+ it "raises a RangeError when called on an beginless range" do
+ -> { (..1).first }.should raise_error(RangeError)
end
end