gem 'rails' gem 'mysql2' gem 'mongoid', '4.0.0' group :development do gem 'guard-rspec' # ファイルが変更されたらRsepcを自動実行 end group :test do gem 'database_cleaner', '~> 1.3.0' # テスト実行後にDBをクリア gem 'capybara', '~> 2.4.3' # ブラウザでの操作をシミュレートしてテストができる gem 'simplecov', :require=>false # テストカバレッジ(テストカバー率) end group :development, :test do gem 'rspec-rails', '~> 3.1.0' # Rails用機能を追加するRSpecラッハー gem 'factory_girl_rails
![RSpecテスト環境 設定 メモ _φ(・・*) - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/25cf92924ff4ae5ed09cacedb8e60a49779c1b3e/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZ0eHQ9UlNwZWMlRTMlODMlODYlRTMlODIlQjklRTMlODMlODglRTclOTIlQjAlRTUlQTIlODMlMjAlRTglQTglQUQlRTUlQUUlOUElMjAlRTMlODMlQTElRTMlODMlQTIlMjBfJUNGJTg2JTI4JUUzJTgzJUJCJUUzJTgzJUJCJTJBJTI5JnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz01MmE5OTUwMDAyNGUzYTU2ZTU2YzBhZmFhOWM3OGZmYQ%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwaGl0b21pXyZ0eHQtY29sb3I9JTIzMjEyMTIxJnR4dC1mb250PUhpcmFnaW5vJTIwU2FucyUyMFc2JnR4dC1zaXplPTM2JnR4dC1hbGlnbj1sZWZ0JTJDdG9wJnM9NTI0MzRlNzk0Y2M5NzUzNWY5ZGZmMGI1NDJkNjM2MTc%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3D2b449bfa8bbec114075fe578d825856b)