diff --git a/spec/lib/http/client_spec.rb b/spec/lib/http/client_spec.rb index 42c1c0c2..9421811c 100644 --- a/spec/lib/http/client_spec.rb +++ b/spec/lib/http/client_spec.rb @@ -350,7 +350,7 @@ def on_error(request, error) let(:client) { described_class.new(options.merge(extra_options)) } end - describe "working with SSL" do + describe "working with SSL", :pending => "TODO: https://github.com/httprb/http/issues/627" do run_server(:dummy_ssl) { DummyServer.new(:ssl => true) } let(:extra_options) { {} } @@ -369,6 +369,8 @@ def on_error(request, error) end it "fails with OpenSSL::SSL::SSLError if host mismatch" do + pending "TODO: https://github.com/httprb/http/issues/627" + expect { client.get(dummy_ssl.endpoint.gsub("127.0.0.1", "localhost")) }. to raise_error(OpenSSL::SSL::SSLError, /does not match/) end @@ -379,6 +381,8 @@ def on_error(request, error) end it "just works" do + pending "TODO: https://github.com/httprb/http/issues/627" + response = client.get(dummy_ssl.endpoint) expect(response.body.to_s).to eq("") end diff --git a/spec/lib/http_spec.rb b/spec/lib/http_spec.rb index cd79880d..86910523 100644 --- a/spec/lib/http_spec.rb +++ b/spec/lib/http_spec.rb @@ -95,7 +95,7 @@ expect(response.to_s).to match(//) end - context "ssl" do + context "ssl", :pending => "TODO: https://github.com/httprb/http/issues/627" do it "responds with the endpoint's body" do response = ssl_client.via(proxy.addr, proxy.port).get dummy_ssl.endpoint expect(response.to_s).to match(//) @@ -132,7 +132,7 @@ end context "ssl" do - it "responds with the endpoint's body" do + it "responds with the endpoint's body", :pending => "TODO: https://github.com/httprb/http/issues/627" do response = ssl_client.via(proxy.addr, proxy.port, "username", "password").get dummy_ssl.endpoint expect(response.to_s).to match(//) end