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.
Maybe your rspec
command isn't installed system-wide, that's ok, try running
bundle exec rspec
It should work.
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