Skip to content

Commit c6e1380

Browse files
committed
test(pkgs_spec): fix rubocop violations (--enable-pending-cops)
``` Offenses: test/integration/default/controls/pkgs_spec.rb:27:5: W: [Corrected] Lint/SymbolConversion: Unnecessary symbol conversion; use iotop: instead. 'iotop': '' ^^^^^^^ test/integration/default/controls/pkgs_spec.rb:33:5: W: [Corrected] Lint/SymbolConversion: Unnecessary symbol conversion; use alien: instead. 'alien': '8.95-8.fc29', ^^^^^^^ test/integration/default/controls/pkgs_spec.rb:34:5: W: [Corrected] Lint/SymbolConversion: Unnecessary symbol conversion; use iotop: instead. 'iotop': '0.6-18.fc29' ^^^^^^^ test/integration/default/controls/pkgs_spec.rb:46:5: W: [Corrected] Lint/SymbolConversion: Unnecessary symbol conversion; use alien: instead. 'alien': '8.95', ^^^^^^^ test/integration/default/controls/pkgs_spec.rb:48:5: W: [Corrected] Lint/SymbolConversion: Unnecessary symbol conversion; use iotop: instead. 'iotop': '0.6-' ^^^^^^^ ```
1 parent e7bbefa commit c6e1380

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/integration/default/controls/pkgs_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@
2424
held_packages = {
2525
# We use this test for held packages in a list,
2626
# with no version (current version).
27-
'iotop': ''
27+
iotop: ''
2828
}
2929
lock_file = '/etc/yum/pluginconf.d/versionlock.list'
3030
when 'fedora'
3131
platform_packages = ['python3-dnf-plugin-versionlock']
3232
held_packages = {
33-
'alien': '8.95-8.fc29',
34-
'iotop': '0.6-18.fc29'
33+
alien: '8.95-8.fc29',
34+
iotop: '0.6-18.fc29'
3535
}
3636
lock_file = '/etc/dnf/plugins/versionlock.list'
3737
# Adding empty Suse entries, to get tests passing
@@ -43,9 +43,9 @@
4343
when 'debian'
4444
platform_packages = %w[]
4545
held_packages = {
46-
'alien': '8.95',
46+
alien: '8.95',
4747
# To match also ubuntu16's
48-
'iotop': '0.6-'
48+
iotop: '0.6-'
4949
}
5050
lock_file = '/var/lib/dpkg/status'
5151
when 'linux'

0 commit comments

Comments
 (0)