diff options
author | ankonym <ankonym@gmail.com> | 2015-09-01 10:48:25 +0200 |
---|---|---|
committer | ankonym <ankonym@gmail.com> | 2015-09-28 15:12:45 +0200 |
commit | c48e921c101d49bf68fa1af489b8012517b1a105 (patch) | |
tree | 78cc0754a9e24c805e8dc5cf4c2af4e204752af3 /test/unit | |
parent | 06ebc254bc4537e81c1336627ba8a54c881a1765 (diff) |
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/tmp_user_test.rb | 2 | ||||
-rw-r--r-- | test/unit/token_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/tmp_user_test.rb b/test/unit/tmp_user_test.rb index 0a9ad68..9494377 100644 --- a/test/unit/tmp_user_test.rb +++ b/test/unit/tmp_user_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class TmpUserTest < ActiveSupport::TestCase setup do - InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false) + InviteCodeValidator.any_instance.stubs(:validate) end test "test_user saved to tmp_users" do diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb index dcf3fc4..51c8d8e 100644 --- a/test/unit/token_test.rb +++ b/test/unit/token_test.rb @@ -4,7 +4,7 @@ class TokenTest < ActiveSupport::TestCase include StubRecordHelper setup do - InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false) + InviteCodeValidator.any_instance.stubs(:validate) @user = find_record :user end |