# テストDB作成(database.ymlは設定済みの前提) $ rake db:create RAILS_ENV=test # DBへテーブル定義を適用 $ rake db:migrate RAILS_ENV=test # test_spec.rbを実行する $ bundle exec rspec spec/models/test_spec.rb
# テストDB作成(database.ymlは設定済みの前提) $ rake db:create RAILS_ENV=test # DBへテーブル定義を適用 $ rake db:migrate RAILS_ENV=test # test_spec.rbを実行する $ bundle exec rspec spec/models/test_spec.rb