mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/uri/http.rb: Documentation and code style imrovements.
* test/uri/test_http.rb: Added test for coverage. [fix GH-1427][ruby-core:77255][Misc #12756] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
377f69e4fe
commit
107ba65fba
3 changed files with 30 additions and 16 deletions
|
@ -16,6 +16,11 @@ class TestHTTP < Test::Unit::TestCase
|
|||
uri.class.component.collect {|c| uri.send(c)}
|
||||
end
|
||||
|
||||
def test_build
|
||||
u = URI::HTTP.build(host: 'www.example.com', path: '/foo/bar')
|
||||
assert_kind_of(URI::HTTP, u)
|
||||
end
|
||||
|
||||
def test_parse
|
||||
u = URI.parse('http://a')
|
||||
assert_kind_of(URI::HTTP, u)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue