Sha256: ddda346436b3207efb3fceabe48ada05e1167065076cc256ab7befa77ae13ac9
Contents?: true
Size: 466 Bytes
Versions: 3
Compression:
Stored size: 466 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.2.2 | opals/opal/opal/spec/core/file/join_spec.rb |
opal-0.2.0 | opals/opal/opal/spec/core/file/join_spec.rb |
opal-0.1.0 | opals/opal/spec/core/file/join_spec.rb |