~ubuntu-branches/ubuntu/precise/puppet-lint/precise

« back to all changes in this revision

Viewing changes to spec/puppet-lint/check_classes_spec.rb

  • Committer: Bazaar Package Importer
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-08 15:13:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20111008151324-rp04eodo2erd6qi6
Tags: 0.1.6-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
    its(:warnings) { should be_empty }
172
172
    its(:errors) { should be_empty }
173
173
  end
 
174
 
 
175
  describe 'instantiating a parametised class inside a class' do
 
176
    let(:code) { "
 
177
      class bar {
 
178
        class { 'foo':
 
179
          bar => 'foobar'
 
180
        }
 
181
      }"
 
182
    }
 
183
 
 
184
    its(:warnings) { should be_empty }
 
185
    its(:errors) { should be_empty }
 
186
  end
 
187
 
 
188
  describe 'instantiating a parametised class inside a define' do
 
189
    let(:code) { "
 
190
      define bar() {
 
191
        class { 'foo':
 
192
          bar => 'foobar'
 
193
        }
 
194
      }"
 
195
    }
 
196
 
 
197
    its(:warnings) { should be_empty }
 
198
    its(:errors) { should be_empty }
 
199
  end
174
200
end