module GdsApi::TestHelpers::FactCave
def fact_cave_has_a_fact(slug, value, options={})
def fact_cave_has_a_fact(slug, value, options={}) response = fact_for_slug(slug, value, options) stub_request(:get, "#{FACT_CAVE_ENDPOINT}/facts/#{slug}") .to_return(:body => response.to_json, :status => 200) stub_request(:get, "#{FACT_CAVE_ENDPOINT}/facts/#{slug}.json") .to_return(:body => response.to_json, :status => 200) end