code_corps v0.0.1 CodeCorpsWeb.ApiCase View Source
This module defines the test case to be used by tests that require setting up a connection, specificaly, those working with the API endpoints.
It’s basically a clone of CodeCorpsWeb.ConnCase, with some extras, mainly authentication and proper headers, added.
If provided with a :resource_name option, it dynamically generates higher level request helper methods
Examples
use ApiCase, resource_name: :task use ApiCase, resource_name: :comment