Closed mikepack closed 9 years ago
I'm not opposed to this, but let me screw around with it to see how easy it would be to take rails out as a dependency for a bit. It kinda plays into supporting middleman, and potentially providing a simple rack middleware layer that teaspoon uses if rails isn't present -- though that sounds particularly unpleasant. heh.
If we always load Rails, we can assume that
teaspoon_env.rb
will get loaded as part of the engine initialization. This doesn't help us move away from Rails, but it's the simplest way to ensure thatteaspoon_env.rb
is only being required once, without limiting any behavior.Additional:
teaspoon_env.rb
to load the Rails environment which I think is cleaner. If we want to go the direction of this PR, I propose we rename this file toteaspoon.rb
.TEASPOON_RAILS_ENV
env var to make this overridable. Works with a stock setup, but is required every time we run teaspoon tests using the dummy app'senvironment.rb
.Fixes #341