alphagov/gds-api-adapters — pull request #37 by jamiecobbett (2012-11-26 17:06:45+00:00)
Title: Make test helpers consistent with library code

Because of a [recent change](https://github.com/alphagov/gds-api-adapters/commit/d1720363561ebc04d33208a3416d127bc9c32250), all of the API adapter classes now use a passed-in URL, rather than generating it themselves.

This is a good change, but it means that the test helpers no longer work in most cases because they use the URL that the API adapter classes used to generate, rather than the URL Plek returns.

We should also be insulated from forthcoming changes to Plek's behaviour.

Ideally the code would use the URL passed in to the client at runtime, but there isn't a clean way of doing this, and it's a rare use case anyway.