Skip to content

Commit

Permalink
fix copy/paste mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
oreoshake committed Jun 24, 2015
1 parent 9b77a7c commit b8ca818
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8ca818

Please sign in to comment.