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_validator_test.rb | |
parent | d13e2d841a632385031a0b98a15773d8b90d05e9 (diff) |
Fixed the signup bug that wrongly consumes the invite code.
Diffstat (limited to 'test/unit/invite_code_validator_test.rb')
-rw-r--r-- | test/unit/invite_code_validator_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/invite_code_validator_test.rb b/test/unit/invite_code_validator_test.rb index 62768e3..75e691d 100644 --- a/test/unit/invite_code_validator_test.rb +++ b/test/unit/invite_code_validator_test.rb @@ -16,7 +16,7 @@ class InviteCodeValidatorTest < ActiveSupport::TestCase end test "trying to create a user with invalid invite code should add error" do - invalid_user = FactoryGirl.build(:user) + invalid_user = FactoryGirl.build(:user, :invite_code => "a non-existent code") invalid_user.valid? |