From a471cdd81e429831087b272622cf4bf281cf4695 Mon Sep 17 00:00:00 2001 From: evazion Date: Tue, 21 Apr 2020 16:06:42 -0500 Subject: [PATCH] tests: fix email verification tests. --- test/functional/emails_controller_test.rb | 2 +- test/functional/users_controller_test.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/test/functional/emails_controller_test.rb b/test/functional/emails_controller_test.rb index 378b071fb..787857c30 100644 --- a/test/functional/emails_controller_test.rb +++ b/test/functional/emails_controller_test.rb @@ -100,7 +100,7 @@ class EmailsControllerTest < ActionDispatch::IntegrationTest context "with a disposable email address" do should "not mark the user as verified" do - Danbooru.config.stubs(:email_domain_verification_list).returns([]) + Danbooru.config.stubs(:email_domain_verification_list).returns(["gmail.com"]) @user.email_address.update!(address: "test@mailinator.com") get email_verification_url(@user) diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index aa0c72f62..4e43a48be 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -161,7 +161,8 @@ class UsersControllerTest < ActionDispatch::IntegrationTest should "mark users signing up from proxies as requiring verification" do skip unless IpLookup.enabled? - self.remote_addr = "1.1.1.1" + + self.remote_addr = "51.15.128.1" post users_path, params: { user: { name: "xxx", password: "xxxxx1", password_confirmation: "xxxxx1" }} assert_redirected_to User.last