Skip to content

Commit 80969bb

Browse files
committed
Correct RSpec/ClassCheck
1 parent eed7c64 commit 80969bb

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,14 +79,6 @@ Performance/RedundantEqualityComparisonBlock:
7979
Exclude:
8080
- 'lib/puppet_x/puppetlabs/dsc_lite/dsc_type_helpers.rb'
8181

82-
# Offense count: 5
83-
# This cop supports safe autocorrection (--autocorrect).
84-
# Configuration parameters: EnforcedStyle.
85-
# SupportedStyles: be_a, be_kind_of
86-
RSpec/ClassCheck:
87-
Exclude:
88-
- 'spec/unit/puppet/type/dsc_spec.rb'
89-
9082
# Offense count: 12
9183
# Configuration parameters: Prefixes, AllowedPatterns.
9284
# Prefixes: when, with, without

spec/unit/puppet/type/dsc_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
)
1717
end
1818

19-
it { is_expected.to be_a_kind_of Puppet::Type::Dsc }
19+
it { is_expected.to be_a Puppet::Type::Dsc }
2020

2121
describe 'type' do
2222
it 'is built dynamically from parameter :resource_name' do
@@ -147,9 +147,9 @@
147147
resource_name: 'baz',
148148
module: 'cat',
149149
)
150-
expect(munged[:properties]['bar']).to be_a_kind_of Puppet::Pops::Types::PSensitiveType::Sensitive
150+
expect(munged[:properties]['bar']).to be_a Puppet::Pops::Types::PSensitiveType::Sensitive
151151
expect(munged[:properties]['bar'].unwrap).to eq value
152-
expect(munged[:properties]['bar2']['bar3']).to be_a_kind_of Puppet::Pops::Types::PSensitiveType::Sensitive
152+
expect(munged[:properties]['bar2']['bar3']).to be_a Puppet::Pops::Types::PSensitiveType::Sensitive
153153
expect(munged[:properties]['bar2']['bar3'].unwrap).to eq value
154154
end
155155

@@ -166,9 +166,9 @@
166166
resource_name: 'baz',
167167
module: 'cat',
168168
)
169-
expect(munged[:properties]['bar']).to be_a_kind_of Puppet::Pops::Types::PSensitiveType::Sensitive
169+
expect(munged[:properties]['bar']).to be_a Puppet::Pops::Types::PSensitiveType::Sensitive
170170
expect(munged[:properties]['bar'].unwrap).to eq value
171-
expect(munged[:properties]['bar2']['bar3']).to be_a_kind_of Puppet::Pops::Types::PSensitiveType::Sensitive
171+
expect(munged[:properties]['bar2']['bar3']).to be_a Puppet::Pops::Types::PSensitiveType::Sensitive
172172
expect(munged[:properties]['bar2']['bar3'].unwrap).to eq value
173173
end
174174
end

0 commit comments

Comments
 (0)