Skip to content

Instantly share code, notes, and snippets.

@keeperofthenecklace
Created August 20, 2012 14:15
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 keeperofthenecklace/3404632 to your computer and use it in GitHub Desktop.
Save keeperofthenecklace/3404632 to your computer and use it in GitHub Desktop.
Cucumber Testing Setup
$ rails new albertsproject
$ cd albertsproject
$ Add to gemfile
group :development, :test do
gem 'rspec-rails'
gem 'cucumber-rails'
gem 'capybara'
end
$ bundle install
$ rails generate --help **view generators
$ rails generate rspec:install
$ rails generate cucumber:install
# Setup database
$ rake db:migrate
$ rake db:test:prepare
$ rake spec
$ rake cucumber
$ bundle exec spec spec/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment