summaryrefslogtreecommitdiff
path: root/spec/ruby/library/uri/generic/host_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/uri/generic/host_spec.rb')
-rw-r--r--spec/ruby/library/uri/generic/host_spec.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/ruby/library/uri/generic/host_spec.rb b/spec/ruby/library/uri/generic/host_spec.rb
index 6fb6c1c36a..4a5a162512 100644
--- a/spec/ruby/library/uri/generic/host_spec.rb
+++ b/spec/ruby/library/uri/generic/host_spec.rb
@@ -1,8 +1,11 @@
-require File.expand_path('../../../../spec_helper', __FILE__)
+require_relative '../../../spec_helper'
require 'uri'
describe "URI::Generic#host" do
- it "needs to be reviewed for spec completeness"
+ # https://hackerone.com/reports/156615
+ it "returns empty string when host is empty" do
+ URI.parse('http:////foo.com').host.should == ''
+ end
end
describe "URI::Generic#host=" do