diff options
author | jkeiser <jkeiser@opscode.com> | 2013-01-16 14:22:53 -0800 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:21 -0700 |
commit | f61f4b52644d255083333b0503cd8f9d6a8ad652 (patch) | |
tree | 24f626b7b37b6f8c385cc5fdb31d6ecc0249021a /spec | |
parent | 276c05e73140a5d9b788f3083e4c86b45aa51c0c (diff) | |
download | chef-f61f4b52644d255083333b0503cd8f9d6a8ad652.tar.gz |
Extra test for error when wildcard doesn't match
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/knife/diff_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/integration/knife/diff_spec.rb b/spec/integration/knife/diff_spec.rb index 66e5d5cf2a..34cffa8878 100644 --- a/spec/integration/knife/diff_spec.rb +++ b/spec/integration/knife/diff_spec.rb @@ -104,6 +104,10 @@ EOM knife('diff /environments/nonexistent.json').should_fail "ERROR: /environments/nonexistent.json: No such file or directory on remote or local\n" end + it 'knife diff /environments/*.txt reports an error' do + knife('diff /environments/*.txt').should_fail "ERROR: /environments/*.txt: No such file or directory on remote or local\n" + end + context 'except the role file' do file 'roles/x.json', <<EOM { |