Skip to content

Instantly share code, notes, and snippets.

@americos
Created January 12, 2011 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save americos/776427 to your computer and use it in GitHub Desktop.
Save americos/776427 to your computer and use it in GitHub Desktop.
Common lines used to set up a Rails project with BDD
1) Add gems to gemfile
gem 'rails', '3.0.0'
gem 'sqlite3-ruby', :require => 'sqlite3'
group :development, :test do
gem 'rspec-rails', '>= 2.0.0'
gem 'cucumber-rails', '>= 0.3.2'
#gem 'webrat', '>= 0.7.2'
gem 'capybara', '0.4.0'
end
2) bundle install
3) Run install for Rspec
rails generate rspec:install
4) Run install for Cucumber
rails generate cucumber:install
4.5) If using capybara
rails generate cucumber:install --rspec --capybara
5) Migrate & Validate everything is OK
rake db:migrate
rake db:test:prepare
rake spec
rake cucumber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment