Created
January 12, 2011 16:43
-
-
Save americos/776427 to your computer and use it in GitHub Desktop.
Common lines used to set up a Rails project with BDD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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