Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sandro/culerity_fakeweb
Example rails app using fakeweb to return known responses in culerity
https://github.com/sandro/culerity_fakeweb
Last synced: 12 days ago
JSON representation
Example rails app using fakeweb to return known responses in culerity
- Host: GitHub
- URL: https://github.com/sandro/culerity_fakeweb
- Owner: sandro
- Created: 2009-03-24T00:51:52.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2009-03-24T00:59:55.000Z (over 15 years ago)
- Last Synced: 2023-04-10T14:47:44.813Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 152 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. Culerity with fakeweb
h2. Florida is fucking cold?
p. This example app uses fakeweb to return an erroneous weather
report for Jacksonville, FL. The cucumber feature called "weather"
asserts that Jacksonville, FL is "fucking cold," which we all
know is rarely true. When the test runs, fakeweb intercepts the
request for Jacksonville weather and instead returns the New York
weather report, which is unfailingly "fucking cold."h3. Instructions
# sudo script/server -p 80 -e cucumber
# cucumber features/weather.feature
# The test passes!
# read the codeh3. Make it fail
# edit config/environments/cucumber.rb
# comment out the fakeweb uri registration
# restart the server (see above)
# cucumber features/weather.feature
# test fails