diff options
Diffstat (limited to 'spec/ruby/library/uri/ftp')
| -rw-r--r-- | spec/ruby/library/uri/ftp/build_spec.rb | 6 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/merge_spec.rb | 6 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/new2_spec.rb | 6 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/path_spec.rb | 26 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/set_typecode_spec.rb | 6 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/to_s_spec.rb | 15 | ||||
| -rw-r--r-- | spec/ruby/library/uri/ftp/typecode_spec.rb | 10 |
7 files changed, 75 insertions, 0 deletions
diff --git a/spec/ruby/library/uri/ftp/build_spec.rb b/spec/ruby/library/uri/ftp/build_spec.rb new file mode 100644 index 0000000000..9e0fb44cf1 --- /dev/null +++ b/spec/ruby/library/uri/ftp/build_spec.rb @@ -0,0 +1,6 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP.build" do + it "needs to be reviewed for spec completeness" +end diff --git a/spec/ruby/library/uri/ftp/merge_spec.rb b/spec/ruby/library/uri/ftp/merge_spec.rb new file mode 100644 index 0000000000..7a9997bbac --- /dev/null +++ b/spec/ruby/library/uri/ftp/merge_spec.rb @@ -0,0 +1,6 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP#merge" do + it "needs to be reviewed for spec completeness" +end diff --git a/spec/ruby/library/uri/ftp/new2_spec.rb b/spec/ruby/library/uri/ftp/new2_spec.rb new file mode 100644 index 0000000000..eb1b149c81 --- /dev/null +++ b/spec/ruby/library/uri/ftp/new2_spec.rb @@ -0,0 +1,6 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP.new2" do + it "needs to be reviewed for spec completeness" +end diff --git a/spec/ruby/library/uri/ftp/path_spec.rb b/spec/ruby/library/uri/ftp/path_spec.rb new file mode 100644 index 0000000000..5fec7f11b6 --- /dev/null +++ b/spec/ruby/library/uri/ftp/path_spec.rb @@ -0,0 +1,26 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP#path=" do + before :each do + @url = URI.parse('ftp://example.com') + end + + it "does not require a leading /" do + @url.path = 'foo' + @url.path.should == 'foo' + end + + it "does not strip the leading /" do + @url.path = '/foo' + @url.path.should == '/foo' + end +end + +describe "URI::FTP#path" do + it "unescapes the leading /" do + url = URI.parse('ftp://example.com/%2Ffoo') + + url.path.should == '/foo' + end +end diff --git a/spec/ruby/library/uri/ftp/set_typecode_spec.rb b/spec/ruby/library/uri/ftp/set_typecode_spec.rb new file mode 100644 index 0000000000..31067930c0 --- /dev/null +++ b/spec/ruby/library/uri/ftp/set_typecode_spec.rb @@ -0,0 +1,6 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP#set_typecode" do + it "needs to be reviewed for spec completeness" +end diff --git a/spec/ruby/library/uri/ftp/to_s_spec.rb b/spec/ruby/library/uri/ftp/to_s_spec.rb new file mode 100644 index 0000000000..3b4ff2d906 --- /dev/null +++ b/spec/ruby/library/uri/ftp/to_s_spec.rb @@ -0,0 +1,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 diff --git a/spec/ruby/library/uri/ftp/typecode_spec.rb b/spec/ruby/library/uri/ftp/typecode_spec.rb new file mode 100644 index 0000000000..1f2bb02252 --- /dev/null +++ b/spec/ruby/library/uri/ftp/typecode_spec.rb @@ -0,0 +1,10 @@ +require_relative '../../../spec_helper' +require 'uri' + +describe "URI::FTP#typecode" do + it "needs to be reviewed for spec completeness" +end + +describe "URI::FTP#typecode=" do + it "needs to be reviewed for spec completeness" +end |
