summaryrefslogtreecommitdiff
path: root/test/unit
diff options
context:
space:
mode:
authorAya Jaff <ayajaff@hotmail.com>2015-08-12 15:18:34 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:44 +0200
commit9156f1354f404c569e7fd337cff0171f6f43842e (patch)
treeb32b4026dfdbdf8a2b7b8e1161d2922891bf3d24 /test/unit
parent8f03c13a038469a1191666259ef5609c89d69d90 (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.rb4
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