summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2013-06-18 12:20:56 -0700
committerBryan McLellan <btm@opscode.com>2013-06-18 12:20:56 -0700
commite0fce91c08881c08081bc8e1720c6df00f21c234 (patch)
tree6b7ab9e5961ec536e7e989c4ca4fa719b6b76aef /spec
parent5144cf38f43e82778f9fb55b9ffb1c86e6436baa (diff)
downloadchef-e0fce91c08881c08081bc8e1720c6df00f21c234.tar.gz
CHEF-3544: Stop trying to count instances of the warning
Everytime we add more tests we have to increment this number, and it's insane to try to audit what it's supposed to be now
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/cookbook_loader_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/cookbook_loader_spec.rb b/spec/unit/cookbook_loader_spec.rb
index 61992ff6ea..fd37aa1f08 100644
--- a/spec/unit/cookbook_loader_spec.rb
+++ b/spec/unit/cookbook_loader_spec.rb
@@ -173,7 +173,7 @@ describe Chef::CookbookLoader do
end
it "should emit deprecation warning if name is not in metadata" do
- Chef::Log.should_receive(:warn).exactly(6).with(/Inferring cookbook name from directory name \([^)]+\) is deprecated, please set a name in the metadata./)
+ Chef::Log.should_receive(:warn).at_least(:once).with(/Inferring cookbook name from directory name \([^)]+\) is deprecated, please set a name in the metadata./)
@cookbook_loader.load_cookbooks
end
end # load_cookbooks