File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 4545 end
4646
4747 context 'when the pattern includes a * right after the first word' do
48- let ( :text ) { 'git*--checkout' }
48+ let ( :text ) { 'git*--checkout' }
4949
5050 it 'returns the first word of the pattern' do
5151 expect ( subject . prefix ) . to eq 'git'
5252 end
5353 end
5454
5555 context 'when the pattern includes a * anywhere else' do
56- let ( :text ) { 'git --checkout*something' }
56+ let ( :text ) { 'git --checkout*something' }
5757
5858 it 'returns the first word of the pattern' do
5959 expect ( subject . prefix ) . to eq 'git'
8989 end
9090
9191 context 'when the pattern includes a * right after the first word' do
92- let ( :text ) { 'git*--checkout' }
92+ let ( :text ) { 'git*--checkout' }
9393
9494 it 'returns all but the first word' do
9595 expect ( subject . text_without_prefix ) . to eq '*--checkout'
9696 end
9797 end
9898
9999 context 'when the pattern includes a * anywhere else' do
100- let ( :text ) { 'git --checkout*something' }
100+ let ( :text ) { 'git --checkout*something' }
101101
102102 it 'returns all but the first word' do
103103 expect ( subject . text_without_prefix ) . to eq '--checkout*something'
104104 end
105105 end
106-
107106 end
108107
109108 describe '#compgen' do
You can’t perform that action at this time.
0 commit comments