Skip to content

Commit b062245

Browse files
committed
Improve wording
1 parent 40c0a0b commit b062245

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

core/comparable/clamp_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
c.clamp(two, three).should equal(c)
2525
end
2626

27-
it 'returns the min parameter if smaller than it' do
27+
it 'returns the min parameter if less than it' do
2828
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
2929
two = ComparableSpecs::WithOnlyCompareDefined.new(2)
3030
c = ComparableSpecs::Weird.new(0)
@@ -52,7 +52,7 @@
5252
c.clamp(two..three).should equal(c)
5353
end
5454

55-
it 'returns the minimum value of the range parameters if smaller than it' do
55+
it 'returns the minimum value of the range parameters if less than it' do
5656
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
5757
two = ComparableSpecs::WithOnlyCompareDefined.new(2)
5858
c = ComparableSpecs::Weird.new(0)
@@ -77,7 +77,7 @@
7777
end
7878

7979
context 'with endless range' do
80-
it 'returns minimum value if smaller than it' do
80+
it 'returns minimum value of the range parameters if less than it' do
8181
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
8282
zero = ComparableSpecs::WithOnlyCompareDefined.new(0)
8383
c = ComparableSpecs::Weird.new(0)
@@ -86,7 +86,7 @@
8686
c.clamp(zero..).should equal(c)
8787
end
8888

89-
it 'always returns self if greater than minimum value' do
89+
it 'always returns self if greater than minimum value of the range parameters' do
9090
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
9191
two = ComparableSpecs::WithOnlyCompareDefined.new(2)
9292
c = ComparableSpecs::Weird.new(2)
@@ -104,14 +104,14 @@
104104
end
105105

106106
context 'with beginless range' do
107-
it 'returns maximum value if greater than maximum value' do
107+
it 'returns maximum value of the range parameters if greater than it' do
108108
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
109109
c = ComparableSpecs::Weird.new(2)
110110

111111
c.clamp(..one).should equal(one)
112112
end
113113

114-
it 'always returns self if smaller than it' do
114+
it 'always returns self if less than maximum value of the range parameters' do
115115
one = ComparableSpecs::WithOnlyCompareDefined.new(1)
116116
zero = ComparableSpecs::WithOnlyCompareDefined.new(0)
117117
c = ComparableSpecs::Weird.new(0)

0 commit comments

Comments
 (0)