Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Adding new test case.

  • Loading branch information...
commit cbd602a54ff78d734fda42564df710f2864ad93f 1 parent 996359b
@patio11 patio11 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.