Skip to content

Commit d0379e7

Browse files
committed
consistency!
1 parent 55054bd commit d0379e7

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

spec/classes/collectd_plugin_java_spec.rb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010
should contain_collectd__plugin('java').with({
1111
:ensure => 'present',
1212
})
13-
14-
should contain_collectd__plugin('java').without_content(/JVMArg/)
1513
end
1614
end
1715

@@ -32,7 +30,7 @@
3230
:jvmarg => %w{ foo bar baz }
3331
}}
3432

35-
it 'will have multiple JVMArg bits' do
33+
it 'will have multiple jvmarg parameters' do
3634
should contain_collectd__plugin('java').with_content(/JVMArg "foo"[\s\n]+JVMArg "bar"[\s\n]+JVMArg "baz"/)
3735
end
3836
end
@@ -42,11 +40,11 @@
4240
:jvmarg => 'bat'
4341
}}
4442

45-
it 'will have a JVMArg bit' do
43+
it 'will have a JVMArg parameter' do
4644
should contain_collectd__plugin('java').with_content(/JVMArg "bat"/)
4745
end
4846

49-
it 'will only have one JVMArg bit' do
47+
it 'will only have one JVMArg parameter' do
5048
should contain_collectd__plugin('java').without_content(/(.*JVMArg.*){2,}/)
5149
end
5250
end
@@ -59,5 +57,8 @@
5957
it 'will not have a <Plugin java> stanza' do
6058
should contain_collectd__plugin('java').without_content(/<Plugin java>/)
6159
end
60+
it 'will not have any jvmarg parameters' do
61+
should contain_collectd__plugin('java').without_content(/JVMArg/)
62+
end
6263
end
6364
end

0 commit comments

Comments
 (0)