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.
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 theGemfile
. Otherwise I get an "undefined method configure for Teaspon:Module". I guess this causesBundler.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 myteaspoon_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