Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails generator error rspec [not found]

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?

like image 991
Jason Yost Avatar asked Jun 27 '14 23:06

Jason Yost


1 Answers

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.

like image 177
alexsmn Avatar answered Nov 19 '22 14:11

alexsmn