Hi there. We have a rails 4.2.6 app and we're using dotenv-rails with no problem. Now we're starting to split some code into gems/engines as components as suggested by the cbra.info approach. We now have an engine which depends on some ENV variables to be loaded in order to properly run the tests. Where would be the best place to require/load dotenv from the engine?
so when I run the engine (not the main app) tests/specs, the env vars get loaded.
ok. that's what I wanted to know.
because I was thinking about adding the load call into the engine's main lib file... but that would get triggered independently of the environment, and I hate adding if Rails.env.test? and that kind of stuff.