diff options
author | ankonym <ankonym@gmail.com> | 2015-08-05 16:55:39 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:44 +0200 |
commit | e6e1187fdc44766aa4336e05aa12d4e74db65d1d (patch) | |
tree | e065ba55c38515cdd60eec195d2096a720049551 /test/unit | |
parent | ea71f09ee23dbc080dd29adf2c3b8fa61f848c22 (diff) |
Adding invite code field to signup with validation for hardcoded invite code
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/user_test.rb | 5 |
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 # |