tstmedia/okcomputer — pull request #7 by pbyrne (2012-12-06 20:37:03+00:00)
Title: Control HTTP Status Code On Check Success

Each check is responsible for calling #mark_failure when it deems itself a "failed" test. This is the only change that a check (like DatabaseCheck has already done) would need to make to support this.

QA Plan
-------

0. `cd spec/dummy`
1. `bundle exec rails server`
3. `curl -v http://localhost:3000/all.json` and confirm the HTTP response is 200.
4. Edit lib/okcomputer/check.rb to return false in #success? and restart the server.
5. `curl -v http://localhost:3000/all.json` and confirm the HTTP response is 500.