File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 2121 context 'with --install' do
2222 it 'installs the completions script to the completions directory' do
2323 allow ( subject ) . to receive ( :compdir_candidates ) . and_return [ '/tmp' ]
24- expect ( subject ) . to receive ( :system ) . with ( %Q [sudo cp "#{ completions_path } " "/tmp/bashly"] )
24+ expect ( subject ) . to receive ( :system ) . with ( %[sudo cp "#{ completions_path } " "/tmp/bashly"] )
2525 expect { subject . execute %w[ completions --install ] } . to output_approval ( 'cli/completions/install' )
2626 end
2727
3636 it 'installs the completions script to the completions directory without sudo' do
3737 allow ( subject ) . to receive ( :compdir_candidates ) . and_return [ '/tmp' ]
3838 allow ( subject ) . to receive ( :root_user? ) . and_return true
39- expect ( subject ) . to receive ( :system ) . with ( %Q [cp "#{ completions_path } " "/tmp/bashly"] )
39+ expect ( subject ) . to receive ( :system ) . with ( %[cp "#{ completions_path } " "/tmp/bashly"] )
4040 expect { subject . execute %w[ completions --install ] } . to output_approval ( 'cli/completions/install-root' )
4141 end
4242 end
You can’t perform that action at this time.
0 commit comments