summaryrefslogtreecommitdiff
path: root/test/controllers/csp_reports_controller_test.rb
blob: 7dd8c9e6a342ef671fe725b42950d331f0aa9e86 (plain)
1
2
3
4
5
6
7
8
require 'test_helper'

class CspReportsControllerTest < ActionController::TestCase
  test "accepts anonymous reports without CSRF" do
    post :create, body: '{"csp-report":{"violated-directive":"script-src"}}'
    assert_response :no_content
  end
end