Skip to content

Commit 0a7890e

Browse files
committed
range more intention revealing than new
1 parent 4ffa826 commit 0a7890e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/unit/cardinality_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def new_invocation
1414
end
1515

1616
def test_should_allow_invocations_if_invocation_count_has_not_yet_reached_maximum
17-
cardinality = Cardinality.new(2, 3)
17+
cardinality = Cardinality.new.range(2, 3)
1818
assert cardinality.invocations_allowed?
1919
cardinality << new_invocation
2020
assert cardinality.invocations_allowed?
@@ -32,7 +32,7 @@ def test_should_never_allow_invocations
3232
end
3333

3434
def test_should_be_satisfied_if_invocations_so_far_have_reached_required_threshold
35-
cardinality = Cardinality.new(2, 3)
35+
cardinality = Cardinality.new.range(2, 3)
3636
assert !cardinality.satisfied?
3737
cardinality << new_invocation
3838
assert !cardinality.satisfied?

0 commit comments

Comments
 (0)