tstmedia/okcomputer — pull request #3 by pbyrne (2012-12-05 16:16:47+00:00)
Title: Perform Simple Up Check

This includes a lot of plumbing to register any number of checks, but only has one defined: DefaultCheck. This is the one that is accessed at /okcomputer by default.

QA Plan
-------

1. `cd spec/dummy`
2. `bundle exec rails server`
3. `curl curl http://localhost:3000/okcomputer/` and confirm that 'default: OKComputer Site Check Passed' returns (performs, by default the default check, returns text).
4. `curl --silent http://localhost:3000/okcomputer/default` and confirm that 'default: OKComputer Site Check Passed' returns (returns the check as text by default).
5. `curl --silent http://localhost:3000/okcomputer/default.text` and confirm that 'default: OKComputer Site Check Passed' returns (returns check as text if specified).
6. `curl --silent http://localhost:3000/okcomputer/default.json` and confirm that '{"default":"OKComputer Site Check Passed"}' returns (returns check as JSON as specified).