I am using rails 4.1.1
When I execute the command rails g generator my_generator
The generator runs but always ends with error rspec [not found]
I have added the rspec
and rspec-rails
gems to my Gemfile.
What step am I missing to get this working?
You do not need to add rspec
to your gem files, just rspec-rails
.
After you bundle install
run rails generate rspec:install
and everything should work fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With