Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

bash: spec: command not found

Tags:

ruby

rspec

I installed rspec gem. I got following message

Successfully installed rspec-2.11.0
1 gem installed
Installing ri documentation for rspec-2.11.0...
Installing RDoc documentation for rspec-2.11.0...

but when I run

  spec path/to/file.rb

I get

-bash: spec: command not found

Any solution on this?

like image 658
Bhushan Lodha Avatar asked Mar 16 '26 02:03

Bhushan Lodha


1 Answers

I think you should run

rspec path/to/file.rb
like image 121
revolver Avatar answered Mar 18 '26 02:03

revolver



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!