开发者

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?


  1. you shouldn't have to use sudo
  2. try bundle exec rspec spec/**/*.spec.rb (or bundle exec rspec spec/**/*_spec.rb if your specs are called *_spec.rb)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜