summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorjkeiser <jkeiser@opscode.com>2013-01-21 09:16:08 -0800
committerJohn Keiser <jkeiser@opscode.com>2013-06-07 13:12:25 -0700
commit8fa8fb0af3aad065b1959a94e56307dc2b962596 (patch)
tree9daf43724b3dd0e4ddd20097b3cc3e0b90bc6069 /spec
parentca9708d32b2880baad62706b32a8db62d54da1ce (diff)
downloadchef-8fa8fb0af3aad065b1959a94e56307dc2b962596.tar.gz
Ignore . dirs in data bags and cookbooks
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/knife/chef_repository_file_system_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/integration/knife/chef_repository_file_system_spec.rb b/spec/integration/knife/chef_repository_file_system_spec.rb
index d648513238..2314ea92c1 100644
--- a/spec/integration/knife/chef_repository_file_system_spec.rb
+++ b/spec/integration/knife/chef_repository_file_system_spec.rb
@@ -246,4 +246,20 @@ EOM
end
end
end
+
+ when_the_repository 'has a cookbook starting with .' do
+ file 'cookbooks/.svn/metadata.rb', ''
+ file 'cookbooks/a.b/metadata.rb', ''
+ it 'knife list does not show it' do
+ knife('list --local -fp /cookbooks').should_succeed "/cookbooks/a.b/\n"
+ end
+ end
+
+ when_the_repository 'has a data bag starting with .' do
+ file 'data_bags/.svn/x.json', {}
+ file 'data_bags/a.b/x.json', {}
+ it 'knife list does not show it' do
+ knife('list --local -fp /data_bags').should_succeed "/data_bags/a.b/\n"
+ end
+ end
end