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