blob: 3b4ff2d906eb0d264528b1f01407728025fe3860 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative '../../../spec_helper'
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
|