Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/searls/depot-capybara
A port of Cheezy's Watir labs ( http://www.cheezyworld.com/2010/12/16/ui-tests-putting-it-all-together/ ) to Capybara
https://github.com/searls/depot-capybara
Last synced: 21 days ago
JSON representation
A port of Cheezy's Watir labs ( http://www.cheezyworld.com/2010/12/16/ui-tests-putting-it-all-together/ ) to Capybara
- Host: GitHub
- URL: https://github.com/searls/depot-capybara
- Owner: searls
- License: mit
- Created: 2011-02-04T20:16:27.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2011-02-04T20:22:56.000Z (almost 14 years ago)
- Last Synced: 2024-11-02T23:23:20.857Z (2 months ago)
- Language: Ruby
- Homepage: http://about.me/searls
- Size: 105 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.txt
Awesome Lists containing this project
README
# Cheezy's Watir Lab (Minus Watir) ((Plus Capybara))
This is a port of [Cheezy](http://twitter.com/chzy)'s recent [Watir](http://watir.com/) labs ([Blog](http://www.cheezyworld.com/2010/12/16/ui-tests-putting-it-all-together/), [Repo](https://github.com/cheezy/uitesting_blog)) to [Capybara](https://github.com/jnicklas/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](http://pragprog.com/titles/rails3).
The Depot source is available [here](http://pragprog.com/titles/rails3/source_code). 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](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](http://gembundler.com/).
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.