In order to demo your feature specs, follow these steps:
- Add capybara, poltergeist, launchy and selenium-webdriver to your Gemfile under test and development group.
- Add the attached demo helper to your spec/support.
- Add the capybara config to your spec_helper file.
- Run bundle install.
- Write your feature with its scenario specs.
- Put a demo filter on each scenario you want to demo. ( refer to the example below )
- Run bundle exec rspec spec.
Note: you should have firefox and phantomjs installed.
If you still have any questions, you can take a look at my example blog application: example blog app