Skip to content
Browse files

Adding new test case.

  • Loading branch information...
1 parent 996359b commit cbd602a54ff78d734fda42564df710f2864ad93f @patio11 patio11 committed
Showing with 7 additions and 0 deletions.
  1. +7 −0 test/abingo_test.rb
View
7 test/abingo_test.rb
@@ -108,5 +108,12 @@ class AbingoTest < ActiveSupport::TestCase
Abingo.bingo!(test_name) #Should not be counted, test is over.
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

0 comments on commit cbd602a

Please sign in to comment.
Something went wrong with that request. Please try again.