module GdsApi::TestHelpers::Mapit
def mapit_has_areas(area_type, areas)
def mapit_has_areas(area_type, areas) stub_request(:get, "#{MAPIT_ENDPOINT}/areas/" + area_type + ".json") .to_return(:body => areas.to_json, :status => 200) end
def mapit_has_areas(area_type, areas) stub_request(:get, "#{MAPIT_ENDPOINT}/areas/" + area_type + ".json") .to_return(:body => areas.to_json, :status => 200) end