summaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorankonym <ankonym@gmail.com>2015-09-01 10:48:25 +0200
committerankonym <ankonym@gmail.com>2015-09-28 15:12:45 +0200
commitc48e921c101d49bf68fa1af489b8012517b1a105 (patch)
tree78cc0754a9e24c805e8dc5cf4c2af4e204752af3 /engines
parent06ebc254bc4537e81c1336627ba8a54c881a1765 (diff)
Fix several test failures by stubbing invite code validation
Diffstat (limited to 'engines')
-rw-r--r--engines/billing/test/functional/customers_controller_test.rb2
-rw-r--r--engines/support/test/unit/account_extension_test.rb2
-rw-r--r--engines/support/test/unit/ticket_test.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/engines/billing/test/functional/customers_controller_test.rb b/engines/billing/test/functional/customers_controller_test.rb
index 0dafe72..4d84fb0 100644
--- a/engines/billing/test/functional/customers_controller_test.rb
+++ b/engines/billing/test/functional/customers_controller_test.rb
@@ -5,7 +5,7 @@ class CustomersControllerTest < ActionController::TestCase
tests CustomerController
setup do
- InviteCodeValidator.any_instance.stubs(:not_existent?).returns(false)
+ InviteCodeValidator.any_instance.stubs(:validate)
@user = FactoryGirl.create :user
@other_user = FactoryGirl.create :user
#FakeBraintree.clear!
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