From b8ca8180b6803bdc04825b64192c1672a6a1931b Mon Sep 17 00:00:00 2001 From: Neil Matatall Date: Wed, 24 Jun 2015 11:53:07 -0700 Subject: [PATCH] fix copy/paste mistake --- spec/lib/secure_headers/headers/content_security_policy_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/secure_headers/headers/content_security_policy_spec.rb b/spec/lib/secure_headers/headers/content_security_policy_spec.rb index e4689962..53a447c1 100644 --- a/spec/lib/secure_headers/headers/content_security_policy_spec.rb +++ b/spec/lib/secure_headers/headers/content_security_policy_spec.rb @@ -195,7 +195,7 @@ def request_for user_agent, request_uri=nil, options={:ssl => false} expect(header.value).to include("script-src 'self' 'nonce-#{header.nonce}' 'unsafe-inline'") end - it "adds a nonce and unsafe-inline to the script-src value when using firefox" do + it "adds a nonce and unsafe-inline to the script-src value when using opera" do header = ContentSecurityPolicy.new(default_opts.merge(:script_src => "self nonce"), :request => request_for(OPERA)) expect(header.value).to include("script-src 'self' 'nonce-#{header.nonce}' 'unsafe-inline'") end