summaryrefslogtreecommitdiff
path: root/spec/ruby/core/range/size_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/range/size_spec.rb')
-rw-r--r--spec/ruby/core/range/size_spec.rb16
1 files changed, 7 insertions, 9 deletions
diff --git a/spec/ruby/core/range/size_spec.rb b/spec/ruby/core/range/size_spec.rb
index 4bf525e541..0019c5ff00 100644
--- a/spec/ruby/core/range/size_spec.rb
+++ b/spec/ruby/core/range/size_spec.rb
@@ -24,16 +24,14 @@ describe "Range#size" do
(-Float::INFINITY..Float::INFINITY).size.should == Float::INFINITY
end
- ruby_version_is "2.6" do
- it 'returns Float::INFINITY for endless ranges if the start is numeric' do
- eval("(1..)").size.should == Float::INFINITY
- eval("(0.5...)").size.should == Float::INFINITY
- end
+ it 'returns Float::INFINITY for endless ranges if the start is numeric' do
+ eval("(1..)").size.should == Float::INFINITY
+ eval("(0.5...)").size.should == Float::INFINITY
+ end
- it 'returns nil for endless ranges if the start is not numeric' do
- eval("('z'..)").size.should == nil
- eval("([]...)").size.should == nil
- end
+ it 'returns nil for endless ranges if the start is not numeric' do
+ eval("('z'..)").size.should == nil
+ eval("([]...)").size.should == nil
end
ruby_version_is "2.7" do