diff options
author | Bryan McLellan <btm@opscode.com> | 2013-06-18 10:56:57 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2013-06-18 10:56:57 -0700 |
commit | 1c45026031490eea4a235af0fd5f0fabd8e1c57f (patch) | |
tree | 66b73d2231681cc87d8377b3bf211c5cca0f28b7 /spec/unit/knife/cookbook_download_spec.rb | |
parent | 06e78bf338cbb5558e5a41b5fbad3b2866ca1343 (diff) | |
download | chef-1c45026031490eea4a235af0fd5f0fabd8e1c57f.tar.gz |
CHEF-4022: Update test for new error message
Diffstat (limited to 'spec/unit/knife/cookbook_download_spec.rb')
-rw-r--r-- | spec/unit/knife/cookbook_download_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/cookbook_download_spec.rb b/spec/unit/knife/cookbook_download_spec.rb index 252d5757dd..cc3c300fdf 100644 --- a/spec/unit/knife/cookbook_download_spec.rb +++ b/spec/unit/knife/cookbook_download_spec.rb @@ -36,7 +36,7 @@ describe Chef::Knife::CookbookDownload do it 'should exit with a fatal error when there is no cookbook on the server' do @knife.name_args = ['foobar', nil] @knife.should_receive(:determine_version).and_return(nil) - @knife.ui.should_receive(:fatal).with(/versions found for cookbook/) + @knife.ui.should_receive(:fatal).with('No such cookbook found') lambda { @knife.run }.should raise_error(SystemExit) end |