Sha256: 911406385329da4c21a1cbbc3893db3e9efab8f45f701a97c55cf7076fb3ae42
Contents?: true
Size: 468 Bytes
Versions: 3
Compression:
Stored size: 468 Bytes
Contents
describe "File.join" do it "returns an empty string when given no arguments" do File.join.should == "" end it "when given a single argument returns an equal string" do # File.join("").should == "" File.join("usr").should == "usr" end it "joins parts using File::SEPARATOR" do File.join('usr', 'bin').should == 'usr/bin' end it "supports any number of arguments" do File.join("a", "b", "c", "d").should == "a/b/c/d" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
opal-0.3.2 | gems/core/spec/core/file/join_spec.rb |
opal-0.3.1 | gems/core/spec/core/file/join_spec.rb |
opal-0.3.0 | gems/core/spec/core/file/join_spec.rb |