module GdsApi::TestHelpers::FinderApi
def self.schema_fixture
def self.schema_fixture File.read( File.expand_path( "../../../../test/fixtures/finder_api/cma-case-schema.json", __FILE__ ) ) end
def finder_api_has_schema(finder_slug, schema_fixture = FinderApi.schema_fixture)
def finder_api_has_schema(finder_slug, schema_fixture = FinderApi.schema_fixture) stub_request(:get, "#{FINDER_API_ENDPOINT}/finders/#{finder_slug}/schema.json") .with(:headers => {'Content-Type'=>'application/json'}) .to_return(:status => 200, :body => schema_fixture) end