alphagov/gds-api-adapters — pull request #23 by bradleywright (2012-09-24 10:37:34+00:00)
Title: Support unlimited depth for subsection test helpers

Previously the
`GdsApi::TestHelpers::ContentApi::artefact_for_slug_in_a_subsection` method
only supported a single depth (e.g `business/section`). This enhances the
method to accept arbitrary depth in the helper (e.g
`business/section/subsection/subsubsection`).

I haven't added any tests for this as the tests are in a Slimmer branch
that adds arbitrary levels to the breadcrumb navigation (and thus
depends on this change), however since the tests still pass the helper
doesn't cause issues.