简体   繁体   中英

Learning Ruby on Rails “RSpec”

I am following learn by example ruby book by michael hart, the book tells you to do bundle install and then generate the rspec:install. I am running 3.0.4 rails and 1.9.2 ruby. I get the answer cannot find generator rspec install. Could anybody please enlighten me as to where the rspec should be.

Thank you

Open up the Gemfile of your rails project and write :

gem "rspec-rails"

Then execute bundle install. Rspec resides in folder spec/ of your rails project.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM