Sha256: 015ef151bdb502e5f7ede90635e1dab59f527bfe9306ab51ba4e2f4eb608addd
Contents?: true
Size: 818 Bytes
Versions: 14
Compression:
Stored size: 818 Bytes
Contents
require File.dirname(__FILE__) + '/base' require 'rush/shell' describe Rush::Shell do before do @shell = Rush::Shell.new end it "matches open path commands for readline tab completion" do @shell.path_parts("dir['app").should == [ "dir", "[", "'", "app", "" ] @shell.path_parts('dir/"app').should == [ "dir", "/", '"', "app", "" ] end it "matches open path commands on globals for readline tab completion" do @shell.path_parts("$dir['app").should == [ "$dir", "[", "'", "app", "" ] @shell.path_parts('$dir/"app').should == [ "$dir", "/", '"', "app", "" ] end it "matches open path commands on instance vars for readline tab completion" do @shell.path_parts("@dir['app").should == [ "@dir", "[", "'", "app", "" ] @shell.path_parts('@dir/"app').should == [ "@dir", "/", '"', "app", "" ] end end
Version data entries
14 entries across 14 versions & 3 rubygems