summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorjkeiser <jkeiser@opscode.com>2013-01-16 14:22:53 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:21 -0700
commitf61f4b52644d255083333b0503cd8f9d6a8ad652 (patch)
tree24f626b7b37b6f8c385cc5fdb31d6ecc0249021a /spec
parent276c05e73140a5d9b788f3083e4c86b45aa51c0c (diff)
downloadchef-f61f4b52644d255083333b0503cd8f9d6a8ad652.tar.gz
Extra test for error when wildcard doesn't match
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/knife/diff_spec.rb4
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
{