mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
290 B
Ruby
16 lines
290 B
Ruby
![]() |
require File.expand_path('../../../../spec_helper', __FILE__)
|
||
|
require 'uri'
|
||
|
|
||
|
|
||
|
describe "URI::FTP#to_s" do
|
||
|
before :each do
|
||
|
@url = URI.parse('ftp://example.com')
|
||
|
end
|
||
|
|
||
|
it "escapes the leading /" do
|
||
|
@url.path = '/foo'
|
||
|
|
||
|
@url.to_s.should == 'ftp://example.com/%2Ffoo'
|
||
|
end
|
||
|
end
|