• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

twitter / secureheaders / 1167 / 11
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 25 Mar 2018 11:58PM UTC
Files 37
Run time 1s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 Mar 2018 11:47PM UTC coverage: 0.0%. Remained the same
jruby-head, SUITE=rspec spec

Pull #389

travis-ci

web-flow
Avoid calling content_security_policy_nonce internally

Rails 5.2 adds support for configuring a Content-Security-Policy header,
including adding nonces to tags produced by the `javascript_tag` helper.

Unfortunately, Rails and this gem now both define a helper named
`content_security_policy_nonce`:

https://github.com/rails/rails/blob/v5.2.0.rc2/actionpack/lib/action_controller/metal/content_security_policy.rb#L44
https://github.com/twitter/secureheaders/blob/v5.0.5/lib/secure_headers/view_helper.rb#L69

The Rails helper wins over the Secure Headers one, and helpers like
`nonced_javascript_tag` currently raise this error on Rails 5.2:

    ArgumentError: wrong number of arguments (given 1, expected 0)

By using a method with a different name internally, we avoid clashing
with the Rails implementation, and `nonced_javascript_tag` works again.
Pull Request #389: Avoid calling content_security_policy_nonce internally

0 of 2110 relevant lines covered (0.0%)

0.0 hits per line

Source Files on job 1167.11 (jruby-head, SUITE=rspec spec)
  • Tree
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1
  • Travis Job 1167.11
  • a70f7289 on github
  • Prev Job for jruby-head, SUITE=rspec spec on master (#1166.11)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc