Skip to content

Commit 835dedc

Browse files
rwstaunereregon
authored andcommitted
Make descriptions match code for beginless range size specs
1 parent 68f5b26 commit 835dedc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/ruby/core/range/size_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@
4444
end
4545

4646
ruby_version_is "3.2" do
47-
it 'returns Float::INFINITY for all beginless ranges if the start is numeric' do
47+
it 'returns Float::INFINITY for all beginless ranges if the end is numeric' do
4848
(..1).size.should == Float::INFINITY
4949
(...0.5).size.should == Float::INFINITY
5050
end
5151

52-
it 'returns nil for all beginless ranges if the start is numeric' do
52+
it 'returns nil for all beginless ranges if the end is not numeric' do
5353
(...'o').size.should == nil
5454
end
5555

0 commit comments

Comments
 (0)