Sha256: b8490710c14642ba6871ba7fe8961d48cc92d4cefeb84857db0859e09dc6be53

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require 'rails_helper'

describe LHC::Response do
  context 'success?' do
    let(:response_success) { described_class.new(Typhoeus::Response.new(response_code: 200, mock: true), nil) }
    let(:response_error) { described_class.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

5 entries across 5 versions & 1 rubygems

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