You can create an empty rspec test sketch set for an existing controller using something like this:
rails generate rspec:scaffold recipe
You can improve this by passing in the attributes of the model you want to create, for example:
rails generate rspec:scaffold recipe title: string slug: string description: text
You still need to do manual editing, but that should do you most of the way.
superluminary
source share