[rspec-users] Testing Generators
mailing_lists at railsnewbie.com
Tue Oct 7 10:22:22 EDT 2008
On Oct 7, 2008, at 6:02 AM, Pau Cor wrote:
> I have started writing my own generators, and I was wondering if
> had any suggestions for testing them.
> I know I could just run the generator in a dummy application; write my
> tests; and then copy the tests back into the generator. But that seems
> Any ideas?
Why don't you generate the specs when you generate the code? Then,
after you've generated the code you tell if the specs are actually
More information about the rspec-users