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