Ruby on Rails: /bin/sh: rspec: command not found

前端 未结 8 643
情话喂你
情话喂你 2020-12-31 08:20

I\'m currently going through Michael Hartl\'s RoR tutorial and am stuck on Chapter 3 when trying to run Spork and Guard. When trying to run tests I get:

/bin/s

8条回答
  •  伪装坚强ぢ
    2020-12-31 08:52

    if you've used rbenv during installation of Ruby in Mac and have issue with running "rspec" after installation "rspec gem", like: "-bash: rspec: command not found", just refresh it by typing command:

    rbenv rehash
    

提交回复
热议问题