rack-test-rest
rack-test-rest copied to clipboard
Extends `rack-test` with support for _CRUD_ operations.
Right now calls require symbols, it would be nice if we did indifferent access internally so users didn't have to cast all keys to symbols before use.
something like: ``` ruby def assert_valid_json(response, msg = nil) full_message = build_message(msg, "response should be valid JSON") assert_block(full_message) do parsable = begin JSON.parse last_response.body true rescue JSON::ParserError false end parsable...
Support the short hand `read_resource(val)` by assuming `val` (if not a hash) is the resource ID. This would be equivalent to `read_resource(:id => val)`. Seems like that is a common...
It would be handy to DRY out tests by using the root_uri as a prefix in the :location check to create_resource. Maybe if the `@rack_test_rest[:location]` did not start with a...