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

Version Path
adamwiggins-rush-0.6.1 spec/shell_spec.rb
adamwiggins-rush-0.6.2 spec/shell_spec.rb
rush-0.6.8 spec/shell_spec.rb
rush-0.6.7 spec/shell_spec.rb
aleksi-rush-0.6.7 spec/shell_spec.rb
aleksi-rush-0.6.6 spec/shell_spec.rb
rush-0.6.6 spec/shell_spec.rb
rush-0.6.5 spec/shell_spec.rb
rush-0.6.4 spec/shell_spec.rb
rush-0.6.3 spec/shell_spec.rb
rush-0.6.2 spec/shell_spec.rb
rush-0.6 spec/shell_spec.rb
rush-0.6.1 spec/shell_spec.rb
rush-0.5.1 spec/shell_spec.rb