Read more

rake spec + rails_admin = weirdly failing specs

Tobias Kraze
July 03, 2012Software engineer at makandra GmbH

If you use rails_admin, your specs pass with the rspec binary, but not using rake spec (or rake parallel:spec etc), put this at the top of your spec_helper:

ENV['SKIP_RAILS_ADMIN_INITIALIZER'] = 'false'
Illustration book lover

Growing Rails Applications in Practice

Check out our e-book. Learn to structure large Ruby on Rails codebases with the tools you already know and love.

  • Introduce design conventions for controllers and user-facing models
  • Create a system for growth
  • Build applications to last
Read more Show archive.org snapshot

Don't ask.

This is probably also true for cucumber, your env.rb would be the right place.

Posted by Tobias Kraze to makandra dev (2012-07-03 17:46)