From fda08292087b0a1eef0ee7a151c7cd8c431a35bb Mon Sep 17 00:00:00 2001 From: Sally Lehman Date: Wed, 22 Apr 2015 01:30:58 +0000 Subject: [PATCH] check that lowercase variable doesn't have an error --- .../plugins/check_variables/variable_is_lowercase_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb b/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb index 37eb908e..80b66d5f 100644 --- a/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb +++ b/spec/puppet-lint/plugins/check_variables/variable_is_lowercase_spec.rb @@ -14,6 +14,12 @@ expect(problems).to contain_warning(msg).on_line(1).in_column(1) end end -end + context 'a variable containing only lowercase letters' do + let(:code) { '$foobar' } + it 'should not detect any problems' do + expect(problems).to have(0).problems + end + end +end