summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorjkeiser <jkeiser@opscode.com>2013-01-19 15:12:37 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:24 -0700
commitdbc838c82a08ffe52a686ffa3f0d7962f4120b54 (patch)
tree3d8be44b3e8e57491f809f2082324fd9d659c7e6 /spec
parent7f7b3e29ccd7c081eb048a0cf81393405851987d (diff)
downloadchef-dbc838c82a08ffe52a686ffa3f0d7962f4120b54.tar.gz
Add knife diff --diff-filter option
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/knife/diff_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/knife/diff_spec.rb b/spec/integration/knife/diff_spec.rb
index 82d0fc7f51..e673f6163a 100644
--- a/spec/integration/knife/diff_spec.rb
+++ b/spec/integration/knife/diff_spec.rb
@@ -188,6 +188,13 @@ D\t/cookbooks/x/onlyin1.0.1.rb
A\t/cookbooks/x/onlyin1.0.0.rb
EOM
end
+
+ it 'knife diff --diff-filter=MAT does not show deleted files' do
+ knife('diff --diff-filter=MAT --name-status /cookbooks/x').should_succeed <<EOM
+M\t/cookbooks/x/metadata.rb
+A\t/cookbooks/x/onlyin1.0.0.rb
+EOM
+ end
end
when_the_chef_server 'has an earlier version for the cookbook' do