Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21568
e93f8b46-1217-0410-a6f0-
8f06a7374b81
before_action :check_credential
+ # Requests from rdm-mailhandler.rb don't contain CSRF tokens
+ skip_before_action :verify_authenticity_token
+
# Displays the email submission form
def new
end
end
assert_response :success
end
+
+ def test_should_skip_verify_authenticity_token
+ ActionController::Base.allow_forgery_protection = true
+ assert_nothing_raised {test_should_create_issue}
+ ensure
+ ActionController::Base.allow_forgery_protection = false
+ end
end