Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

rspec - command not found

As part of assignment I am creating a basic website. When rails server is not running and I execute "rspec" for root directory, the rspec is executed. However tests fail. When I start rails server and execute rspec from another terminal window (after going to root directory), rspec doesnt work. I get the following message -

Tushars-MacBook-Pro:recipefinder tusharsaurabh$ rspec -bash: rspec: command not found

Please let me know, how to fix it.

like image 331
Tushar Saurabh Avatar asked Mar 13 '16 06:03

Tushar Saurabh


1 Answers

Maybe your rspec command isn't installed system-wide, that's ok, try running

bundle exec rspec

It should work.

like image 141
Maxim Filippov Avatar answered Sep 28 '22 00:09

Maxim Filippov