Sha256: 45afaeb25b589c7418971f0fcdf23b5c1c749770cee46213c3c922023da91daf

Contents?: true

Size: 310 Bytes

Versions: 5

Compression:

Stored size: 310 Bytes

Contents

require 'rails_helper'

describe LHC::Response do
  context 'body' do
    let(:body) { 'this is a body' }

    let(:raw_response) { OpenStruct.new(body: body) }

    it 'provides response body' do
      response = described_class.new(raw_response, nil)
      expect(response.body).to eq body
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lhc-3.5.4 spec/response/body_spec.rb
lhc-3.5.3 spec/response/body_spec.rb
lhc-3.5.2 spec/response/body_spec.rb
lhc-3.5.1 spec/response/body_spec.rb
lhc-3.5.0 spec/response/body_spec.rb