Skip to content

Commit

Permalink
Use realistic value in a spec
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Apr 14, 2019
1 parent 8aef65e commit 29ed488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/faraday/adapter/net_http_persistent_spec.rb
Expand Up @@ -46,7 +46,7 @@
{
headers: { 'X-Faraday-Adapter' => adapter },
ssl: {
min_version: '1.0'
min_version: :TLS1_2
}
}
end
Expand All @@ -59,7 +59,7 @@
http = adapter.send(:net_http_connection, url: url, request: {})

# `min_version` is only present in net_http_persistent >= 3.1 (UNRELEASED)
expect(http.min_version).to eq('1.0') if http.respond_to?(:min_version)
expect(http.min_version).to eq(:TLS1_2) if http.respond_to?(:min_version)
end
end
end

0 comments on commit 29ed488

Please sign in to comment.