Skip to content

Commit

Permalink
Add spec for CLASSREF tokens that start with TYPE keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
rodjek committed Dec 3, 2016
1 parent b044aee commit f5f6cea
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/puppet-lint/lexer_spec.rb
Expand Up @@ -629,6 +629,12 @@
expect(token.type).to eq(:CLASSREF)
expect(token.value).to eq('::One')
end

it 'should match terms that start with Types' do
token = @lexer.tokenise('Regexp_foo').first
expect(token.type).to eq(:CLASSREF)
expect(token.value).to eq('Regexp_foo')
end
end

context ':NAME' do
Expand Down

0 comments on commit f5f6cea

Please sign in to comment.