Standalone RSpec Integration Test Suite
This works is inspired by the idea of github.com/thuss/standalone-cucumber. Thanks Todd !
Use this test project layout when you want to test a site that is not rails/sinatra/ruby powered and thus with no comfortable test framework.
I've included a simple search_spec.rb example that uses Google. To switch to use your own development or staging server adjust the URL in spec_helper.rb. I have this example project setup to use Capybara with Webdriver (Selenium) and mechanize but you can easily switch this to use Culerity, Webrat, env-js by editing spec_helper.rb.
Pull requests with updates/enhancements/bug fixes are always welcome!
spec/integration/*_spec.rb : RSpec/Steak scenarii
spec/spec_helper.rb : configures the driver and the hostname to use
spec/support/ : additional configuration
sudo bundle install
To run all features: rake
To run a specific feature: rspec spec/integration/search_spec.rb
github.com/jnicklas/capybara (for actions such as click_link, click_button, etc…)
github.com/cavalle/steak (for test syntax featue, scenario, …)