spec/faraday/connection_spec.rb in faraday-2.3.0 vs spec/faraday/connection_spec.rb in faraday-2.4.0

- old
+ new

@@ -129,9 +129,15 @@ let(:options) { { ssl: { verify: false } } } it { expect(subject.ssl.verify?).to be_falsey } end + context 'with verify_hostname false' do + let(:options) { { ssl: { verify_hostname: false } } } + + it { expect(subject.ssl.verify_hostname?).to be_falsey } + end + context 'with empty block' do let(:conn) { Faraday::Connection.new {} } it { expect(conn.builder.handlers.size).to eq(0) } end