title: How can I do request tests with Grape Entity?
body: <p>The response body is return the "formated json with Grape Entity", but the first_prefered is returning the complete object (json format).</p>
  
  <p>How Can I convert the <code>first_prefered</code> object just to get the exposed fields using grape entity?</p>
  
  <p>FeaturedHomekeeperResponseEntity:</p>
  
  <pre><code>module API::V1::Entities
    class FeaturedHomekeeperResponseEntity &lt; Grape::Entity
      expose :id, documentation: { type: 'integer', desc: 'ID' }
      expose :featured_type, documentation: { type: 'string', desc: 'Featured Type' }
    end
  end
  </code></pre>
  
  <p>Test:</p>
  
  <pre><code>let(:address) { Fabricate(:address) }
  
        it 'should return the first prefered homekeeper of an address' do
          first_prefered = Fabricate(:featured_homekeeper_as_first_prefered, address: address)
  
          get "/api/v1/addresses/#{address.id}/prefered/first"
  
          expect(json).to eq(YAML.load(first_prefered.to_json))
        end
  </code></pre>