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 /engines/support | |
parent | 06ebc254bc4537e81c1336627ba8a54c881a1765 (diff) |
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'engines/support')
-rw-r--r-- | engines/support/test/unit/account_extension_test.rb | 2 | ||||
-rw-r--r-- | engines/support/test/unit/ticket_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/support/test/unit/account_extension_test.rb b/engines/support/test/unit/account_extension_test.rb index dd7e77d..0ecb1aa 100644 --- a/engines/support/test/unit/account_extension_test.rb +++ b/engines/support/test/unit/account_extension_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class AccountExtensionTest < ActiveSupport::TestCase setup do - InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false) + InviteCodeValidator.any_instance.stubs(:validate) end test "destroying an account triggers ticket destruction" do diff --git a/engines/support/test/unit/ticket_test.rb b/engines/support/test/unit/ticket_test.rb index 7727650..7b5281f 100644 --- a/engines/support/test/unit/ticket_test.rb +++ b/engines/support/test/unit/ticket_test.rb @@ -3,7 +3,7 @@ require 'test_helper' class TicketTest < ActiveSupport::TestCase setup do - InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false) + InviteCodeValidator.any_instance.stubs(:validate) end test "ticket with default attribs is valid" do |