cloudspokes/cs-website-cms — pull request #1 by parasquid (2012-11-21 16:56:28+00:00)
Title: Specs for the Member and Challenge models

http://www.cloudspokes.com/challenges/1911

I did not write tests for the controller as they're just simple ones only intended as a smoke test and showcase of the model's ability to act just like an active record object.

Some notes:

* There are a number of endpoints that have changed since the last challenge. Some have had records which are now empty -- I've marked them as pending tests.

* The test for challenge.comments is failing because the Comment model does not support nested comments (yet). The comments were not nested during the last challenge. I've left these tests failing with comments.

* member.total_3st_place is misspelled in the API. I wrote a passing test, but once the API changes the model and the test should be updated to reflect the change.

* I've changed a few fields in Challenge to reflect a more ruby-esque access conventions. For example, is_open is accessed as open? and release_to_open_source is accessed as release_to_open_source? (we usually use ? to denote a boolean variable or field)