Sha256: 5c6f0d04efd5fc7ccf37e1dd52ac1eb0c3b7de24f2fd255955dcf7ffdfa8e191
Contents?: true
Size: 516 Bytes
Versions: 21
Compression:
Stored size: 516 Bytes
Contents
describe Array do describe "#delete_switches" do it "should delete switches such as -h or --help, returning a new array" do ['foo', '-h', 'bar', '--help'].delete_switches.should == ['foo', 'bar'] end end describe "#parse" do it "should seperate a list of words into an array" do Array.parse('just a test').should == ['just', 'a', 'test'] end it "should preserve escaped whitespace" do Array.parse('just a\ test').should == ['just', 'a test'] end end end
Version data entries
21 entries across 21 versions & 1 rubygems