spec/pa_spec.rb in pa-1.3.2 vs spec/pa_spec.rb in pa-1.3.3

- old
+ new

@@ -92,9 +92,16 @@ expect(Pa.fext2("foo")).to eq("") expect(Pa.fext2("/home/foo.txt")).to eq("txt") end end + describe ".head2" do + it do + expect(Pa.head2("/bar/foo.txt.tar")).to eq("/bar/foo.txt") + expect(Pa.head2("/bar/foo")).to eq("/bar/foo") + end + end + describe "split2" do it "split a path into two part: dirname and basename" do expect(Pa.split2("/home/b/a.txt")).to eq(["/home/b", "a.txt"]) end