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

mroderick / codebar-planner / 25068627567
95%
master: 95%

Build:
Build:
LAST BUILD BRANCH: feature/default-async-email-delivery
DEFAULT BRANCH: master
Ran 28 Apr 2026 05:48PM UTC
Jobs 1
Files 184
Run time 1min
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

28 Apr 2026 05:44PM UTC coverage: 95.45% (+0.007%) from 95.443%
25068627567

push

github

mroderick
fix: handle ActionController::UnknownFormat with 406 response

Adds rescue_from handler for ActionController::UnknownFormat in ApplicationController,
returning 406 Not Acceptable for unsupported request formats.

This is the idiomatic Rails approach for handling format negotiation errors,
as documented in the Rails Guides and API:
- https://api.rubyonrails.org/classes/ActionController/MimeResponds.html
- https://github.com/rails/rails/blob/main/guides/source/action_controller_advanced_topics.md

Changes:
- Add rescue_from ActionController::UnknownFormat to ApplicationController
- Add render_not_acceptable method returning 406 status
- Add not_acceptable.html.haml error template
- Add comprehensive controller tests for HTML, JSON, and XML formats

Fixes UnknownFormat errors when crawlers/scripts send non-HTML Accept headers.

5 of 5 new or added lines in 1 file covered. (100.0%)

3524 of 3692 relevant lines covered (95.45%)

47.3 hits per line

Jobs
ID Job ID Ran Files Coverage
1 25068627567.1 28 Apr 2026 05:48PM UTC 1104
69.53
GitHub Action Run
Source Files on build 25068627567
  • Tree
  • List 184
  • Changed 118
  • Source Changed 1
  • Coverage Changed 118
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25068627567
  • 5163bef8 on github
  • Prev Build on master (#25068444082)
  • Delete
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