aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template/csp_helper_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/test/template/csp_helper_test.rb')
-rw-r--r--actionview/test/template/csp_helper_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionview/test/template/csp_helper_test.rb b/actionview/test/template/csp_helper_test.rb
index 8bad25ba7d..1b7fd4665f 100644
--- a/actionview/test/template/csp_helper_test.rb
+++ b/actionview/test/template/csp_helper_test.rb
@@ -16,6 +16,10 @@ class CspHelperWithCspEnabledTest < ActionView::TestCase
def test_csp_meta_tag
assert_equal "<meta name=\"csp-nonce\" content=\"iyhD0Yc0W+c=\" />", csp_meta_tag
end
+
+ def test_csp_meta_tag_with_options
+ assert_equal "<meta property=\"csp-nonce\" name=\"csp-nonce\" content=\"iyhD0Yc0W+c=\" />", csp_meta_tag(property: "csp-nonce")
+ end
end
class CspHelperWithCspDisabledTest < ActionView::TestCase