diff options
author | Mal Graty <mal.graty@googlemail.com> | 2013-03-06 09:31:25 +0000 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-05-24 07:12:45 -0700 |
commit | 2de2f4a4cde5a58247caaf1d2b8a1a10c8d3a024 (patch) | |
tree | 27b7cbf090c4041c65f2053b49e957f2573af418 /spec/unit/cookbook_loader_spec.rb | |
parent | 4cc156b3b308c879502f86a3de6d44737e1b1920 (diff) | |
download | chef-2de2f4a4cde5a58247caaf1d2b8a1a10c8d3a024.tar.gz |
Improve deprecation warning
Diffstat (limited to 'spec/unit/cookbook_loader_spec.rb')
-rw-r--r-- | spec/unit/cookbook_loader_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/cookbook_loader_spec.rb b/spec/unit/cookbook_loader_spec.rb index 5bd7b62183..17e189cd6c 100644 --- a/spec/unit/cookbook_loader_spec.rb +++ b/spec/unit/cookbook_loader_spec.rb @@ -172,7 +172,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("Inferred cookbook names are deprecated, please set a name in metadata") + Chef::Log.should_receive(:warn).exactly(6).with(/Inferring cookbook name from directory name \([^)]+\) is deprecated, please set a name in the metadata./) @cookbook_loader.load_cookbooks end end # load_cookbooks |