Skip to content

Commit 1dd75e3

Browse files
Fix RSpec/DescribedClass warning
Prior to this the following error occurred: ``RSpec/DescribedClass: Use `described_class` instead of `PuppetLint::Lexer`. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass)`` Signed-off-by: Gavin Didrichsen <[email protected]>
1 parent d0e5560 commit 1dd75e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/puppet-lint/lexer_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256
end
257257

258258
context 'treats a variable named the same as the keyword as a variable' do
259-
PuppetLint::Lexer::KEYWORDS.each_key do |keyword|
259+
described_class::KEYWORDS.each_key do |keyword|
260260
context "for '#{keyword}'" do
261261
let(:segments) do
262262
[

0 commit comments

Comments
 (0)