Skip to content

searls/depot-capybara

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cheezy's Watir Lab (Minus Watir) ((Plus Capybara))

This is a port of Cheezy's recent Watir labs (Blog, Repo) to Capybara.

Getting Depot Running

To run the web tests, you'll need to first be running a local instance of the Depot application from the (pre-Rails 3 edition of the) AWDWR book.

The Depot source is available here. If you're on OS X, you should be able to run this embarrasingly long command to download the Depot app and run it:

curl http://media.pragprog.com/titles/rails3/code/rails3-code.tgz > code.tgz && tar xvf code.tgz && cd code/depot_t && mkdir log && touch log/devopment.log && rake db:migrate && script/server

From your browser, hit http://localhost:3000/store to verify that the app is running.

Running these cucumber features

First, if you don't have it, you'll want to install Bundler.

gem install bundler

Now, to execute the feature, change into the directory containing this project and run:

bundle install
bundle exec cucumber

If all goes well, the feature's scenarios will all pass and you'll be able to dig into the code.

Releases

No releases published

Packages

No packages published

Languages