开发者

rspec problem under rails 3.0 / ubuntu

开发者 https://www.devze.com 2023-02-05 00:18 出处:网络
I followed the tutorial book under http://railstutoria开发者_Python百科l.org/ and found problem with rspec.

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

精彩评论

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

关注公众号