diff --git a/saas/test/controllers/saas_sessions_controller_test.rb b/saas/test/controllers/saas_sessions_controller_test.rb index 2fa4ab0f1..639d6353e 100644 --- a/saas/test/controllers/saas_sessions_controller_test.rb +++ b/saas/test/controllers/saas_sessions_controller_test.rb @@ -5,7 +5,6 @@ class SaasSessionsControllerTest < ActionDispatch::IntegrationTest untenanted do assert_difference -> { Identity.count }, +1 do assert_difference -> { MagicLink.count }, +1 do - puts "BEFORE!" post session_path, params: { email_address: "nonexistent-#{SecureRandom.hex(6)}@example.com" }, headers: http_basic_auth_headers("testname", "testpassword") diff --git a/saas/test/controllers/signups/completions_controller_test.rb b/saas/test/controllers/signups/completions_controller_test.rb index 49628a188..955300f55 100644 --- a/saas/test/controllers/signups/completions_controller_test.rb +++ b/saas/test/controllers/signups/completions_controller_test.rb @@ -18,6 +18,8 @@ class Signup::CompletionsControllerTest < ActionDispatch::IntegrationTest end test "create" do + Queenbee::Remote::Account.any_instance.stubs(:save).returns(true) + untenanted do post saas.signup_completion_path, params: { signup: { diff --git a/saas/test/models/signup_test.rb b/saas/test/models/signup_test.rb index 335a1f0eb..d34518322 100644 --- a/saas/test/models/signup_test.rb +++ b/saas/test/models/signup_test.rb @@ -30,6 +30,8 @@ class SignupTest < ActiveSupport::TestCase test "#complete" do ::Account.any_instance.expects(:setup_customer_template).once + Queenbee::Remote::Account.any_instance.stubs(:save).returns(true) + ::Current.without_account do signup = Signup.new( full_name: "Kevin",