module GdsApi::TestHelpers::Rummager
def first_n_results(results, options)
def first_n_results(results, options) n = options[:n] results = JSON.parse(results) results["results"] = results["results"][0...n] results.to_json end
def first_n_results(results, options) n = options[:n] results = JSON.parse(results) results["results"] = results["results"][0...n] results.to_json end