File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ def install_command_string
2626
2727 def uninstall_command
2828 result = root_user? ? [ ] : %w[ sudo ]
29- result += %W [rm -f ] + target_directories . map { |dir | "#{ dir } /#{ program } " }
29+ result + %w [rm -f ] + target_directories . map { |dir | "#{ dir } /#{ program } " }
3030 end
3131
3232 def uninstall_command_string
3333 uninstall_command . join ' '
34- end
34+ end
3535
3636 def target_path
3737 "#{ completions_path } /#{ program } "
@@ -52,7 +52,7 @@ def install(force: false)
5252
5353 system ( *install_command )
5454 end
55-
55+
5656 def uninstall
5757 system ( *uninstall_command )
5858 end
Original file line number Diff line number Diff line change 11describe Commands ::Install do
22 subject { described_class . new }
33
4- let ( :leeway ) { RUBY_VERSION < " 3.2.0" ? 0 : 5 }
4+ let ( :leeway ) { RUBY_VERSION < ' 3.2.0' ? 0 : 5 }
55 let :mock_installer do
66 instance_double Installer ,
77 install : true ,
Original file line number Diff line number Diff line change 11describe Commands ::Uninstall do
22 subject { described_class . new }
33
4- let ( :leeway ) { RUBY_VERSION < " 3.2.0" ? 0 : 5 }
4+ let ( :leeway ) { RUBY_VERSION < ' 3.2.0' ? 0 : 5 }
55 let :mock_installer do
66 instance_double Installer ,
77 uninstall : true ,
Original file line number Diff line number Diff line change 11describe Installer do
22 subject { described_class . new program : program , script_path : script_path }
33
4- let ( :leeway ) { RUBY_VERSION < " 3.2.0" ? 0 : 3 }
4+ let ( :leeway ) { RUBY_VERSION < ' 3.2.0' ? 0 : 3 }
55 let ( :program ) { 'completely-test' }
66 let ( :script_path ) { 'completions.bash' }
77 let ( :targets ) { subject . target_directories . map { |dir | "#{ dir } /#{ program } " } }
1010 end
1111
1212 let ( :uninstall_command ) do
13- %W [ sudo rm -f ] + targets
13+ %w [ sudo rm -f ] + targets
1414 end
1515
1616 describe '#target_directories' do
You can’t perform that action at this time.
0 commit comments