Skip to content

Commit a5ac737

Browse files
author
Gavin Williams
committed
Fix rubocop warnings on new unit test file
1 parent 196a0a6 commit a5ac737

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

spec/unit/type/es_instance_conn_validator_spec.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
let(:resource_name) { 'conn-validator' }
55
let(:conn_validator) do
66
Puppet::Type.type(:es_instance_conn_validator)
7-
.new(name: resource_name)
7+
.new(name: resource_name)
88
end
99

1010
describe 'when validating attributes' do
1111
[:name, :server, :port, :timeout, :sleep_interval].each do |param|
12-
it "should have a #{param} parameter" do
12+
it 'should have a #{param} parameter' do
1313
expect(described_class.attrtype(param)).to eq(:param)
1414
end
1515
end
1616

1717
[:ensure].each do |prop|
18-
it "should have a #{prop} property" do
18+
it 'should have a #{prop} property' do
1919
expect(described_class.attrtype(prop)).to eq(:property)
2020
end
2121
end
@@ -50,39 +50,39 @@
5050
) }.to raise_error(Puppet::Error, /Invalid value/)
5151
end
5252
end # describe 'ensure'
53-
53+
5454
describe 'timeout' do
55-
it "should support a numerical value" do
55+
it 'should support a numerical value' do
5656
conn_validator[:timeout] = 120
5757
expect(conn_validator[:timeout]).to eq(120)
5858
end
5959

60-
it "should have a default value of 60" do
60+
it 'should have a default value of 60' do
6161
expect(conn_validator[:timeout]).to eq(60)
6262
end
6363

64-
it "should not support a non-numeric value" do
64+
it 'should not support a non-numeric value' do
6565
expect do
6666
conn_validator[:timeout] = 'string'
6767
end.to raise_error(Puppet::Error, /invalid value/)
6868
end
6969
end # describe 'timeout'
7070

7171
describe 'sleep_interval' do
72-
it "should support a numerical value" do
72+
it 'should support a numerical value' do
7373
conn_validator[:sleep_interval] = 120
7474
expect(conn_validator[:sleep_interval]).to eq(120)
7575
end
7676

77-
it "should have a default value of 10" do
77+
it 'should have a default value of 10' do
7878
expect(conn_validator[:sleep_interval]).to eq(10)
7979
end
8080

81-
it "should not support a non-numeric value" do
81+
it 'should not support a non-numeric value' do
8282
expect do
8383
conn_validator[:sleep_interval] = 'string'
8484
end.to raise_error(Puppet::Error, /invalid value/)
8585
end
8686
end # describe 'sleep_interval
8787
end # describe 'when valdating values'
88-
end # of describe Puppet::Type
88+
end # of describe Puppet::Type

0 commit comments

Comments
 (0)