Sha256: bb5456a891a5b50b749651aa4aebcc03c159eae65bbb3eb85d7e95071713f5e2
Contents?: true
Size: 579 Bytes
Versions: 28
Compression:
Stored size: 579 Bytes
Contents
# frozen_string_literal: true RSpec.describe Faraday::Middleware do subject { described_class.new(app) } describe '#close' do context "with app that doesn't support \#close" do let(:app) { double } it 'should issue warning' do expect(subject).to receive(:warn) subject.close end end context "with app that supports \#close" do let(:app) { double } it 'should issue warning' do expect(app).to receive(:close) expect(subject).to_not receive(:warn) subject.close end end end end
Version data entries
28 entries across 25 versions & 8 rubygems