File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
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
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
You can’t perform that action at this time.
0 commit comments