Skip to content

Commit 90be1b3

Browse files
chelnakLukasAud
authored andcommitted
(CONT-801) Fixup some rubocop issues
1 parent 76f44c9 commit 90be1b3

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

lib/puppet/functions/fqdn_rand_string.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
def fqdn_rand_string(length, charset = '', *seed)
2626
charset = charset.chars.to_a
2727

28-
charset = (0..9).map { |i| i.to_s } + ('A'..'Z').to_a + ('a'..'z').to_a if charset.empty?
28+
charset = (0..9).map(&:to_s) + ('A'..'Z').to_a + ('a'..'z').to_a if charset.empty?
2929

3030
rand_string = ''
3131
length.times do |current|

spec/functions/has_interface_with_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
'network' => '127.0.0.0'
2323
},
2424
],
25-
"bindings6": [
25+
bindings6: [
2626
{
2727
'address' => '::1',
2828
'netmask' => 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff',

spec/unit/puppet/provider/file_line/ruby_spec_alter.rb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
end
3535

3636
describe '#create' do
37-
context 'when adding' do
38-
pending('To be added.')
39-
end
4037
context 'when replacing' do
4138
let :params do
4239
{
@@ -69,9 +66,6 @@
6966
end
7067
end
7168
end
72-
describe '#destroy' do
73-
pending('To be added?')
74-
end
7569
context 'when matching' do
7670
# rubocop:disable RSpec/InstanceVariable : replacing before with let breaks the tests, variables need to be altered within it block : multi
7771
before :each do
@@ -147,9 +141,6 @@
147141
end
148142
end
149143
end
150-
context 'when match+replace+append_on_no_match' do
151-
pending('to do')
152-
end
153144
context 'when after' do
154145
let :resource do
155146
Puppet::Type::File_line.new(

0 commit comments

Comments
 (0)