Skip to content

Commit 1754a06

Browse files
committed
Fix Rubocop Performance/StringInclude cop
1 parent 0b4d8a2 commit 1754a06

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spec/acceptance/tests/mounted_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
MountUtils.create_filesystem(agent, name)
1616

1717
step 'create a mount with puppet (mounted)'
18-
args = if %r{aix}.match?(agent['platform'])
18+
args = if agent['platform'].include?('aix')
1919
['ensure=mounted',
2020
"fstype=#{fs_type}",
2121
"options='log=/dev/hd8'",

spec/spec_helper_acceptance.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
# umount disk image
3232
on(agent, "umount /#{name}", acceptable_exit_codes: (0..254))
3333
# delete disk image
34-
if %r{aix}.match?(agent['platform'])
34+
if agent['platform'].include?('aix')
3535
on(agent, "rmlv -f #{name}", acceptable_exit_codes: (0..254))
3636
else
3737
on(agent, "rm /tmp/#{name}", acceptable_exit_codes: (0..254))

0 commit comments

Comments
 (0)