Hello,
I'm developing a framework. So, I'm constantly doing an install_gem
to test etc.
I'm using rSpec to test my generators. I just ported some helpers
from the test:unit stuff that is included:
http://gist.github.com/3155
This works, except if the gem is installed it'll _ALWAYS_ use that
generator as opposed to the source path I give it.
I thought by:
source = RubiGen::PathSource.new(:component,
File.join(File.dirname(__FILE__), "../generators"))
RubiGen::Base.reset_sources
RubiGen::Base.prepend_sources source
...it would reset all sources and only search the one I provide. Not
the case. A quick search throught the codebase I see if sources is
empty it'll automatically populate it.
Is there anywhere to clear sources and provide only one path to search?