summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-08-05 16:55:39 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:44 +0200
commite6e1187fdc44766aa4336e05aa12d4e74db65d1d (patch)
treee065ba55c38515cdd60eec195d2096a720049551 /test
parentea71f09ee23dbc080dd29adf2c3b8fa61f848c22 (diff)
Adding invite code field to signup with validation for hardcoded invite code
Diffstat (limited to 'test')
-rw-r--r--test/unit/user_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index c301923..cd290d5 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -70,6 +70,11 @@ class UserTest < ActiveSupport::TestCase
assert_equal key, @user.public_key
end
+ test "user should have an invite token" do
+ user = User.new
+ assert_nil(user.invite_code)
+ end
+
#
## Regression tests
#