jejacks0n / teaspoon

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

Teaspoon as development dependency of Rails engine #491

Closed tf closed 3 years ago

tf commented 8 years ago

Hi,

I'm using Teaspoon in a Rails engine and have declared it as a development dependency inside the gemspec. But I also need to add a gem "teaspoon-mocha" entry to the Gemfile. Otherwise I get an "undefined method configure for Teaspon:Module". I guess this causes Bundler.require to pick it up.

This isn't that bad, but always generates a Bundler warning telling me I listed the gem more than once. I also tried to add a require "teaspoon" to the top of my teaspoon_env.rb, but this results in "undefined method `inject_instrumentation' for Teaspoon::Engine:Class". Is there some other way to work around this? Otherwise, I think, the wiki page on using Teaspoon in Rails engines should be updated accordingly.

The code of the project is open source.

Thanks Tim