rake spec + rails_admin = weirdly failing specs

Posted Almost 12 years ago. Visible to the public.

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'

Don't ask.

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

Tobias Kraze
Last edit
Almost 12 years ago
Keywords
parallel_test, feature
License
Source code in this card is licensed under the MIT License.
Posted by Tobias Kraze to makandra dev (2012-07-03 15:46)