Skip to content

Commit 16a4cfd

Browse files
David Swanekohl
authored andcommitted
(maint) - minor Rubocop fixes
1 parent 48f8ffa commit 16a4cfd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/classes/apache_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@
503503

504504
it {
505505
is_expected.to contain_file('/opt/rh/root/etc/httpd/conf/httpd.conf').with(
506-
'ensure' => 'file',
506+
'ensure' => 'file',
507507
).that_notifies('Class[Apache::Service]').that_requires(['Package[httpd]', 'Concat[/etc/httpd/conf/ports.conf]'])
508508
}
509509
end
@@ -516,7 +516,7 @@
516516
it {
517517
is_expected.to contain_file('/etc/httpd/special_conf.d').with(
518518
'ensure' => 'directory', 'recurse' => 'true',
519-
'purge' => 'true',
519+
'purge' => 'true'
520520
).that_notifies('Class[Apache::Service]').that_requires('Package[httpd]')
521521
}
522522
end
@@ -733,7 +733,7 @@
733733
it {
734734
is_expected.to contain_concat('/usr/local/etc/apache24/ports.conf').with(
735735
'owner' => 'root', 'group' => 'wheel',
736-
'mode' => '0644',
736+
'mode' => '0644'
737737
).that_notifies('Class[Apache::Service]')
738738
}
739739
# Assert that load files are placed for these mods, but no conf file.
@@ -800,7 +800,7 @@
800800
it {
801801
is_expected.to contain_concat('/etc/apache2/ports.conf').with(
802802
'owner' => 'root', 'group' => 'wheel',
803-
'mode' => '0644',
803+
'mode' => '0644'
804804
).that_notifies('Class[Apache::Service]')
805805
}
806806
end

spec/classes/mod/status_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def status_conf_spec_require(requires, extended_status, status_path)
295295
end
296296

297297
it 'expects to fail array validation' do
298-
is_expected.to compile.and_raise_error(/allow_from/)
298+
is_expected.to compile.and_raise_error(%r{allow_from})
299299
end
300300
end
301301

@@ -342,7 +342,7 @@ def status_conf_spec_require(requires, extended_status, status_path)
342342
end
343343

344344
it 'expects to fail regular expression validation' do
345-
is_expected.to compile.and_raise_error(/extended_status/)
345+
is_expected.to compile.and_raise_error(%r{extended_status})
346346
end
347347
end
348348
end

0 commit comments

Comments
 (0)