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

enriclluelles / route_translator / 717 / 6
99%
master: 100%

Build:
Build:
LAST BUILD BRANCH: chore/improve-specs
DEFAULT BRANCH: master
Ran 22 Jul 2019 11:00AM UTC
Files 13
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

22 Jul 2019 10:50AM UTC coverage: 99.01%. Remained the same
2.4.6, gemfiles/rails_5.2.gemfile

push

travis-ci

tagliala
Do not raise InvalidLocale errors

When a user passes an invalid locale to an unlocalized route (such as
ActiveStorage routes or routes outside the `localized` block),
`route_translator` does not check if the locale is included in the
available locales list and a default Rails configuration will raise
an InvalidLocale error.

This behavior could potentially open to DOS attacks (eg: flooding an
exception tracker)

This commit will prevent to set locales that are not included in
`I18n.available_locales`

Close: #196

300 of 303 relevant lines covered (99.01%)

1030.64 hits per line

Source Files on job 717.6 (2.4.6, gemfiles/rails_5.2.gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 708
  • Travis Job 717.6
  • def83c0c on github
  • Prev Job for 2.4.6, gemfiles/rails_5.2.gemfile on feature/do-not-raise-invalid-locale-errors (#712.6)
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