Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Adding new test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
patio11 committed Feb 14, 2010
1 parent 996359b commit cbd602a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/abingo_test.rb
Expand Up @@ -108,5 +108,12 @@ class AbingoTest < ActiveSupport::TestCase


Abingo.bingo!(test_name) #Should not be counted, test is over. Abingo.bingo!(test_name) #Should not be counted, test is over.
assert_equal 0, ex.conversions assert_equal 0, ex.conversions

old_identity = Abingo.identity
Abingo.identity = "shortCircuitTestNewIdentity"
Abingo.test(test_name, %w{A B}, :conversion => conversion_name)
Abingo.identity = old_identity
ex.reload
assert_equal 1, ex.participants #Original identity counted, new identity not counted b/c test stopped
end end
end end

0 comments on commit cbd602a

Please sign in to comment.