Sha256: f68a7748c146f6635e3ebe92ecb5145e8202cd254cbad1f9775b492d9a79cacf

Contents?: true

Size: 339 Bytes

Versions: 10

Compression:

Stored size: 339 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

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

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dhc-3.0.0 spec/response/body_spec.rb
dhc-2.4.0 spec/response/body_spec.rb
dhc-2.3.0 spec/response/body_spec.rb
dhc-2.2.1 spec/response/body_spec.rb
dhc-2.2.0 spec/response/body_spec.rb
dhc-2.1.1 spec/response/body_spec.rb
dhc-2.1.0 spec/response/body_spec.rb
dhc-2.0.1 spec/response/body_spec.rb
dhc-2.0.0 spec/response/body_spec.rb
dhc-1.0.0 spec/response/body_spec.rb