A sample RSpec/Steak test suite for testing non Ruby web applications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
spec
.gitignore
Gemfile
README.rdoc
Rakefile

README.rdoc

Standalone RSpec Integration Test Suite

Introduction

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!

Project Layout

  • spec/integration/*_spec.rb : RSpec/Steak scenarii

  • spec/spec_helper.rb : configures the driver and the hostname to use

  • spec/support/ : additional configuration

Prerequisites

Configuration

  • sudo bundle install

Running Features

  • To run all features: rake

  • To run a specific feature: rspec spec/integration/search_spec.rb

Additional Documentation

Contributors