Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (6 sloc) 736 Bytes
This is an example of how to use Cucumber with 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: