- Dockerfile
- docker-compose.yml
- Gemfile
- Gemfile.lock
DockerfileでGoogle Chromeのインストールを実行
$ docker-compose run web rails new . --force --database=postgresql --skip-test
- rspec-rails
- capybara
- selenium-webdriver
- webdrivers
- launchy
$ docker-compose build
database.ymlを修正
$ docker-compose run web rake db:create
$ docker-compose run web bin/rails g scaffold User name:string
$ docker-compose run web rake db:migrate
$ docker-compose run web rails generate rspec:install
rails_helper.rb
に require 'capybara/rspec'
を追記
system/user_spec.rb
に最低限のテストを記載
$ docker-compose up
$ docker-compose run web bin/rails spec