Skip to content

Commit 9079d2a

Browse files
committed
Correct RSpec/HooksBeforeExamples
1 parent 80969bb commit 9079d2a

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ RSpec/DescribeClass:
119119
RSpec/ExampleLength:
120120
Max: 73
121121

122-
# Offense count: 1
123-
# This cop supports safe autocorrection (--autocorrect).
124-
RSpec/HooksBeforeExamples:
125-
Exclude:
126-
- 'spec/unit/puppet/type/base_dsc_spec.rb'
127-
128122
# Offense count: 1
129123
RSpec/LeakyConstantDeclaration:
130124
Exclude:

spec/unit/puppet/type/base_dsc_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
# Configuration PROVIDER TESTS
1717

1818
describe 'powershell provider tests' do
19-
it 'successfully instantiate the provider' do
20-
described_class.provider(:powershell).new(base_dsc_lite)
21-
end
22-
2319
before(:each) do
2420
@provider = described_class.provider(:powershell).new(base_dsc_lite)
2521
end
22+
23+
it 'successfully instantiate the provider' do
24+
described_class.provider(:powershell).new(base_dsc_lite)
25+
end
2626
end
2727
end

0 commit comments

Comments
 (0)