use new count matchers in params class

This commit is contained in:
Matthew Haughton 2013-12-06 11:14:20 -05:00 committed by Matthew Haughton
parent 36319cd5e0
commit 37c12b8cb4

View file

@ -8,12 +8,8 @@ describe 'nginx::params' do
} end
it { should contain_nginx__params }
it { should have_class_count(1) } #only nginx::params itself
it { should have_resource_count(0) } #params class should never declare resources
# There are 4 resources in this class currently
# there should not be any more resources because it is a params class
# The resources are class[nginx::params], class[main], class[settings], stage[main]
it "Should not contain any resources" do
subject.resources.size.should == 4
end
end
end