Make recaptcha optional on signup page.

This commit is contained in:
evazion
2017-11-28 22:37:02 -06:00
parent 2000719227
commit 8d8a2f9c1e
5 changed files with 24 additions and 7 deletions

View File

@@ -76,11 +76,7 @@ class UsersControllerTest < ActionController::TestCase
context "new action" do
setup do
ENV["RECAPTCHA_SITE_KEY"] = "x"
end
teardown do
ENV["RECAPTCHA_SITE_KEY"] = nil
Danbooru.config.stubs(:enable_recaptcha?).returns(false)
end
should "render" do