To setup with Rails 3, we will need to use the README documentation on Github.
1) Include the necessary gems
2) $ bundle install
3) $ rails g cucumber:install --rspec --capybara
Generate a Feature
4) rails g cucumber:feature post title:string description:text published:boolean
5) rails g scaffold post title:string description:text published:boolean
6) rake db:migrate
7) Comment out the line require 'cucumber/rails/capybara_javascript_emulation' in /features/support/env.rb
8) rake cucumber
0 comments:
Post a Comment