fix functional tests

This commit is contained in:
r888888888
2017-11-20 16:29:59 -08:00
parent 502f1298a9
commit ba517af1db
5 changed files with 27 additions and 6 deletions

View File

@@ -75,6 +75,14 @@ class UsersControllerTest < ActionController::TestCase
end
context "new action" do
setup do
ENV["RECAPTCHA_SITE_KEY"] = "x"
end
teardown do
ENV["RECAPTCHA_SITE_KEY"] = nil
end
should "render" do
get :new
assert_response :success