diff options
author | Aya Jaff <ayajaff@hotmail.com> | 2015-08-12 15:18:34 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:44 +0200 |
commit | 9156f1354f404c569e7fd337cff0171f6f43842e (patch) | |
tree | b32b4026dfdbdf8a2b7b8e1161d2922891bf3d24 /test/unit | |
parent | 8f03c13a038469a1191666259ef5609c89d69d90 (diff) |
Added an 'invite code' to all the tests for the sign-up form so we have a valid user for the tests again
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/tmp_user_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/tmp_user_test.rb b/test/unit/tmp_user_test.rb index 55b117f..af2218e 100644 --- a/test/unit/tmp_user_test.rb +++ b/test/unit/tmp_user_test.rb @@ -8,13 +8,13 @@ class TmpUserTest < ActiveSupport::TestCase assert_difference('User.database.info["doc_count"]') do normal_user = User.create!(:login => 'a'+SecureRandom.hex(5).downcase, - :password_verifier => 'ABCDEF0010101', :password_salt => 'ABCDEF') + :password_verifier => 'ABCDEF0010101', :password_salt => 'ABCDEF', :invite_code => 'testcode') refute normal_user.database.to_s.include?('tmp') end assert_difference('User.tmp_database.info["doc_count"]') do tmp_user = User.create!(:login => 'test_user_'+SecureRandom.hex(5).downcase, - :password_verifier => 'ABCDEF0010101', :password_salt => 'ABCDEF') + :password_verifier => 'ABCDEF0010101', :password_salt => 'ABCDEF', :invite_code => 'testcode') assert tmp_user.database.to_s.include?('tmp') end ensure |