rspec problem under rails 3.0 / ubuntu
I followed the tutorial book under http://railstutoria开发者_Python百科l.org/ and found problem with rspec
.
sudo rspec spec/ #caused sudo: rspec: command not found
If I used
sudo bundle exec rspec spec/ #Failure Error: Unable to find matching ....
any help?
- you shouldn't have to use sudo
- try
bundle exec rspec spec/**/*.spec.rb
(orbundle exec rspec spec/**/*_spec.rb
if your specs are called *_spec.rb)
精彩评论