diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-12-16 16:52:32 -0800 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-12-16 16:52:32 -0800 |
commit | ed235e00d028e652e8a90c5ce684f2dfe241b96a (patch) | |
tree | 35b226e7fbb12f8dd3ff267e3716d56c53619c59 /spec | |
parent | 75167e720b36fd3b3873bd0f7d76a05f6ec057e3 (diff) | |
download | chef-ed235e00d028e652e8a90c5ce684f2dfe241b96a.tar.gz |
Remove a test that was not testing behavior of the code under test.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'spec')
-rw-r--r-- | spec/unit/http/ssl_policies_spec.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/spec/unit/http/ssl_policies_spec.rb b/spec/unit/http/ssl_policies_spec.rb index 616f0685f3..856c921c74 100644 --- a/spec/unit/http/ssl_policies_spec.rb +++ b/spec/unit/http/ssl_policies_spec.rb @@ -31,7 +31,6 @@ describe "HTTP SSL Policy" do let(:unconfigured_http_client) { Net::HTTP.new("example.com", 443) } let(:http_client) do - unconfigured_http_client.use_ssl = true ssl_policy.apply unconfigured_http_client end @@ -45,10 +44,6 @@ describe "HTTP SSL Policy" do Chef::Config[:ssl_verify_mode] = :verify_peer end - it "configures the HTTP client to use SSL when given a URL with the https protocol" do - expect(http_client.use_ssl?).to be_truthy - end - it "sets the OpenSSL verify mode to verify_peer" do expect(http_client.verify_mode).to eq(OpenSSL::SSL::VERIFY_PEER) end |