Sha256: ec10a7c57c16b2e755436f52cf9dfe35e508222fcad6d0c636f1937b468ebaaf
Contents?: true
Size: 543 Bytes
Versions: 5
Compression:
Stored size: 543 Bytes
Contents
require File.expand_path("spec_helper", File.dirname(File.dirname(__FILE__))) describe "slash_path_empty" do it "considers a / path as empty" do app(:slash_path_empty) do |r| r.is{"1"} r.is("a"){"2"} r.get("b"){"3"} end body("").should == '1' body.should == '1' body("a").should == '' body("/a").should == '2' body("/a/").should == '2' body("/a/b").should == '' body("b").should == '' body("/b").should == '3' body("/b/").should == '3' body("/b/c").should == '' end end
Version data entries
5 entries across 5 versions & 1 rubygems