module GdsApi::TestHelpers::PublishingApi
def assert_publishing_api_put(url, attributes_or_matcher = {}, times = 1)
def assert_publishing_api_put(url, attributes_or_matcher = {}, times = 1) if attributes_or_matcher.is_a?(Hash) matcher = attributes_or_matcher.empty? ? nil : request_json_matching(attributes_or_matcher) else matcher = attributes_or_matcher end if matcher assert_requested(:put, url, times: times, &matcher) else assert_requested(:put, url, times: times) end end