We just start using RSpec and rspec_on_rails for a existing Rails
project.
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.
We just start using RSpec and rspec_on_rails for a existing Rails
project.
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.
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.