opengovernment/govkit — pull request #25 by oneacross (2012-04-09 17:49:03+00:00)
Title: Remove the hardcoded Resource format

This allows HTTParty to detect the format type
by looking at the Content-Type in the response
and use the appropriate parser.

Needed to explicitly add the json format to State,
since the fixture has a blank Content-Type.

Now rspec spec/open_states_spec.rb passes.

This fixes the tests for HTTP error codes.
They are plain text, which HTTParty does not
check for before handing off to the JSON parser.