spec/runner_acceptance_spec.rb in puppet-doc-lint-0.2.0 vs spec/runner_acceptance_spec.rb in puppet-doc-lint-0.3.0
- old
+ new
@@ -68,11 +68,12 @@
puppet_files = Dir.glob('spec/manifests/**/*.pp')
subject { setup_folder(puppet_files) }
it "should return a multi-element array" do
subject.class.should be(Array)
- subject.size.should eql(7)
+ # Count of how many test manifests we have
+ subject.size.should eql(8)
end
end
describe "manifest with parameters and rdoc" do
@@ -123,9 +124,15 @@
file = 'spec/manifests/define_nordoc.pp'
klass = 'define_nordoc'
it_should_behave_like "standard tests", file, klass
it_should_behave_like "no rdoc", file, klass
it_should_behave_like "something undocumented", file, klass
+ end
+
+ describe "badly formatted author block" do
+ file = 'spec/manifests/bad_author_block.pp'
+ klass = 'apt::backports'
+ it_should_behave_like "standard tests", file, klass
end
end