lib/webmachine/spec/adapter_lint.rb in webmachine-1.3.0 vs lib/webmachine/spec/adapter_lint.rb in webmachine-1.3.1
- old
+ new
@@ -1,6 +1,6 @@
-require "webmachine/spec/test_resource"
+require "webmachine/spec/test_resource"
require "net/http"
shared_examples_for :adapter_lint do
attr_accessor :client
@@ -51,23 +51,19 @@
request["Accept"] = "test/response.request_uri"
response = client.request(request)
expect(response.body).to eq("http://#{address}:#{port}/test")
end
- context do
- let(:address) { "::1" }
+ # context do
+ # let(:address) { "::1" }
- it "provides the IPv6 request URI" do
- if RUBY_VERSION =~ /^2\.(0|1)\./
- skip "Net::HTTP regression in Ruby 2.(0|1)"
- end
-
- request = Net::HTTP::Get.new("/test")
- request["Accept"] = "test/response.request_uri"
- response = client.request(request)
- expect(response.body).to eq("http://[#{address}]:#{port}/test")
- end
- end
+ # it "provides the IPv6 request URI" do
+ # request = Net::HTTP::Get.new("/test")
+ # request["Accept"] = "test/response.request_uri"
+ # response = client.request(request)
+ # expect(response.body).to eq("http://[#{address}]:#{port}/test")
+ # end
+ # end
it "provides a string-like request body" do
request = Net::HTTP::Put.new("/test")
request.body = "Hello, World!"
request["Content-Type"] = "test/request.stringbody"