Sha256: 1539ad1c27b13f0ea9391ecc84d844fc074529486a984c74d3e249721788b198

Contents?: true

Size: 301 Bytes

Versions: 10

Compression:

Stored size: 301 Bytes

Contents

require 'rails_helper'

describe LHC::Response do

  context 'code' do

    let(:code) { 200 }

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

    it 'provides response code' do
      response = LHC::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
lhc-3.4.0 spec/response/code_spec.rb
lhc-3.3.0 spec/response/code_spec.rb
lhc-3.2.0 spec/response/code_spec.rb
lhc-3.1.1 spec/response/code_spec.rb
lhc-3.1.0 spec/response/code_spec.rb
lhc-3.0.0 spec/response/code_spec.rb
lhc-2.0.0 spec/response/code_spec.rb
lhc-1.2.0 spec/response/code_spec.rb
lhc-1.1.0 spec/response/code_spec.rb
lhc-0.2.1 spec/response/code_spec.rb