- database
- gem 'rspec-rails', '~> 3.0'
- rails generate rspec:install
- generates test data
- gem 'factory_girl_rails'
RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods end
require 'support/factory_girl'
rails g factory_girl:model comment rails g factory_girl:model post
rails g rspec:model comment
gem 'cucumber-rails', :require => false
group :test do gem 'database_cleaner' end
rails generate cucumber:install
gem 'capybara' gem 'cucumber-rails', :require => false gem 'selenium-webdriver'