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

diffux / diffux / 457
98%

Build:
DEFAULT BRANCH: master
Ran 10 May 2014 07:47PM UTC
Jobs 2
Files 24
Run time 2min
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

pending completion
457

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%)

148.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 457.1 (2.0.0) 10 May 2014 07:47PM UTC 0
98.9
Travis Job 457.1
2 457.2 (2.1.0) 10 May 2014 07:49PM UTC 0
98.9
Travis Job 457.2
Source Files on build 457
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #457
  • 8a0f9b7d on github
  • Prev Build on master (#456)
  • Next Build on master (#458)
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