diff options
author | Aya Jaff <ayajaff@hotmail.com> | 2015-09-04 14:01:49 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:46 +0200 |
commit | 2ce3d14cfa77f985b6849dd4431db65e9abd0226 (patch) | |
tree | 14f59ede560a51ee639407bbda90f86440e48920 /test/unit/invite_code_test.rb | |
parent | d13e2d841a632385031a0b98a15773d8b90d05e9 (diff) |
Fixed the signup bug that wrongly consumes the invite code.
Diffstat (limited to 'test/unit/invite_code_test.rb')
-rw-r--r-- | test/unit/invite_code_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/unit/invite_code_test.rb b/test/unit/invite_code_test.rb index 2c9e33f..1b6a002 100644 --- a/test/unit/invite_code_test.rb +++ b/test/unit/invite_code_test.rb @@ -20,22 +20,6 @@ class InviteCodeTest < ActiveSupport::TestCase assert_equal code1.invite_count, 0 end - test "Invite code count goes up by 1 when the invite code is entered" do - #TODO but onlz if there are no other errors on the form - - validator = InviteCodeValidator.new nil - - user = FactoryGirl.build :user - user_code = InviteCode.new - user_code.save - user.invite_code = user_code.invite_code - - validator.validate(user) - - user_code.reload - assert_equal 1, user_code.invite_count - - end test "Invite count >0 is not accepted for new account signup" do validator = InviteCodeValidator.new nil |