Skip to content

Commit

Permalink
range more intention revealing than new
Browse files Browse the repository at this point in the history
  • Loading branch information
nitishr committed Mar 1, 2025
1 parent 4ffa826 commit 0a7890e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/unit/cardinality_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def new_invocation
end

def test_should_allow_invocations_if_invocation_count_has_not_yet_reached_maximum
cardinality = Cardinality.new(2, 3)
cardinality = Cardinality.new.range(2, 3)
assert cardinality.invocations_allowed?
cardinality << new_invocation
assert cardinality.invocations_allowed?
Expand All @@ -32,7 +32,7 @@ def test_should_never_allow_invocations
end

def test_should_be_satisfied_if_invocations_so_far_have_reached_required_threshold
cardinality = Cardinality.new(2, 3)
cardinality = Cardinality.new.range(2, 3)
assert !cardinality.satisfied?
cardinality << new_invocation
assert !cardinality.satisfied?
Expand Down

0 comments on commit 0a7890e

Please sign in to comment.