Example of how to use Cucumber with Capybara-Mechanize outside of Ruby on Rails
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
features
Gemfile
Gemfile.lock
README
rakefile

README

This is an example of how to use Cucumber with capybara-mechanize (https://github.com/jeroenvandijk/capybara-mechanize) outside of Ruby on Rails.

My goal is to provide a means for writing quick black-box integration tests for any web application, even if it's a legacy application and regardless of whether or not it's using Rails. The documentation I've been able to find on how to run Cucumber outside of Rails is sparse, and the examples few and far between.  Moreover the capybara-mechanize gem is relatively new, and it's a great way to do quick headless integration tests.

Check out the "google_search" feature for a quick example. You should be able to get this running by either typing:

rake cucumber

or simply:

cucumber