Skip to main content

How to make Ruby on Rails with RSpec

A note for myself. Follow the steps below:

  1. Run rails new <PATH> 2.Add the following line to <PATH>/Gemfile, gem 'rspec-rails'
  2. Run script/rails generate rspec:install
  3. Add models as usual: rails generate scaffold Person name:string address:integer
  4. Run rake db:migrate