Sha256: 8b8ba957e9c4b2530e05bf7c283a044cdabf783271b28ba5b518a558d85dfc51

Contents?: true

Size: 326 Bytes

Versions: 10

Compression:

Stored size: 326 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe DHC::Response do
  context 'code' do
    let(:code) { 200 }

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

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