module GdsApi::TestHelpers::PublishingApiV2
def publishing_api_has_item(item, params = {})
-
item(Hash) --
def publishing_api_has_item(item, params = {}) item = deep_transform_keys(item, &:to_sym) url = PUBLISHING_API_V2_ENDPOINT + "/content/" + item[:content_id] stub_request(:get, url) .with(query: hash_including(params)) .to_return(status: 200, body: item.to_json, headers: {}) end