spec/basic_methods/request_spec.rb in dhc-2.4.0 vs spec/basic_methods/request_spec.rb in dhc-3.0.0

- old
+ new

@@ -11,9 +11,9 @@ .to_return(status: 200, body: { total: total }.to_json, headers: { 'Content-Encoding' => 'UTF-8' }) end it 'does a request returning a response' do response = DHC.request(url: 'http://datastore/v2/feedbacks', params: { has_reviews: true }, method: :get) - expect(response.data.total).to eq total + expect(response.data['total']).to eq total end end end