jejacks0n / teaspoon

Teaspoon: Javascript test runner for Rails. Use Selenium, BrowserStack, or PhantomJS.
1.43k stars 243 forks source link

Load Rails, which will load teaspoon_env #343

Closed mikepack closed 9 years ago

mikepack commented 9 years ago

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 that teaspoon_env.rb is only being required once, without limiting any behavior.

Additional:

Fixes #341

jejacks0n commented 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.