Sha256: c7e254be760b4b7ad90ce37421be00ace9a5c774cf97c7caffd4a0358add365e

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

require 'rails_helper'

describe LHC::Response do

  context 'success?' do
    let(:response_success) { LHC::Response.new(Typhoeus::Response.new(response_code: 200, mock: true), nil) }
    let(:response_error) { LHC::Response.new(Typhoeus::Response.new(response_code: 404, mock: true), nil) }

    it { expect(response_success.success?).to be_truthy }
    it { expect(response_error.success?).to be_falsy }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
lhc-3.4.0 spec/response/success_spec.rb
lhc-3.3.0 spec/response/success_spec.rb
lhc-3.2.0 spec/response/success_spec.rb
lhc-3.1.1 spec/response/success_spec.rb
lhc-3.1.0 spec/response/success_spec.rb
lhc-3.0.0 spec/response/success_spec.rb
lhc-2.0.0 spec/response/success_spec.rb
lhc-1.2.0 spec/response/success_spec.rb
lhc-1.1.0 spec/response/success_spec.rb
lhc-0.2.1 spec/response/success_spec.rb