Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (19 sloc) 818 Bytes
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
Something went wrong with that request. Please try again.