[rspec-users] Is there a way to generate spec for existing controllers?
Bart Zonneveld
zuperinfinite at gmail.com
Mon Mar 2 09:18:55 EST 2009
On 2-mrt-2009, at 4:08, Phlip wrote:
> David Chelimsky wrote:
>
>> ty wrote:
>
>>> We just start using RSpec and rspec_on_rails for a existing Rails
>>> project.
>
> No unit tests, right?
>
>>> After run script/generate rspec. It only generate the structure
>>> folders.
>>> We've got quite a few controllers and models. I wonder is it a
>>> way to
>>> auto-generate specs for them.
>> Nope. Sorry.
>
> Ask your goal-donor what feature they'd like to see in a spec.
>
> That is the point of specs - writing verbiage that a "product
> manager" or "business analyst" can review.
I fully agree.
For views though, there is http://github.com/hashrocket/view_specify/
tree/master
Haven't tried it, and never will :).
cheers,
bartz
More information about the rspec-users
mailing list