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

diffux / diffux / 457 / 2
98%
master: 98%

Build:
DEFAULT BRANCH: master
Ran 10 May 2014 07:49PM UTC
Files 24
Run time 3s
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

10 May 2014 07:29PM UTC coverage: 98.901%. Remained the same
2.1.0

push

travis-ci

lencioni
Set default locale in routes

After adding the optional locale param scope to the routes, a bunch of
controller specs blew up. It looked like RSpec thought that the ID param
in GET requests was the locale param, causing errors along the lines of
"No route matches...".

After some digging around, I stumbled upon an issue[1] where someone was
having a similar problem. @noplay suggested a workaround that involved
setting the default in the routes when running tests. I played around
with a few options and landed on a solution where I specify the default
locale param value as I18n.default_locale. This fixes the broken tests
and allows us to run with the same configuration in all environments
without any problems.

[1]: https://github.com/rspec/rspec-rails/issues/562

Change-Id: I9e340810f

450 of 455 relevant lines covered (98.9%)

74.09 hits per line

Source Files on job 457.2 (2.1.0)
  • Tree
  • List 0
  • Changed 6
  • Source Changed 0
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 457
  • Travis Job 457.2
  • 8a0f9b7d on github
  • Prev Job for 2.1.0 on master (#456.2)
  • Next Job for 2.1.0 on master (#458.2)
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