Skip to content

Commit 967e41f

Browse files
committed
rubocop
1 parent 67b6715 commit 967e41f

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/completely/installer.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

spec/completely/commands/install_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe 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,

spec/completely/commands/uninstall_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe 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,

spec/completely/installer_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
describe 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}" } }
@@ -10,7 +10,7 @@
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

0 commit comments

Comments
 (0)