alexrothenberg/ammeter — Issue #2: How to test injected class ?
Author: EppO
Created: 2011-10-11 23:14:06+00:00
State: open

Hi,

I'am trying to create some specs for a generator that inject some code into a class using inject_into_class thor method.
Problem is that I need to provide a king of template in my spec in order to test it but as the destination folder is wiped out at every rspec run, I didn't find a clean way to add a class template at rspec runtime so that the generator doesn't fail telling it didn't find the model file.
Any idea appreciated.