How to make Ruby on Rails with RSpec
A note for myself. Follow the steps below:
- Run
rails new <PATH>
2.Add the following line to<PATH>/Gemfile
,gem 'rspec-rails'
- Run
script/rails generate rspec:install
- Add models as usual:
rails generate scaffold Person name:string address:integer
- Run
rake db:migrate