diff options
author | jkeiser <jkeiser@opscode.com> | 2013-01-21 09:16:08 -0800 |
---|---|---|
committer | John Keiser <jkeiser@opscode.com> | 2013-06-07 13:12:25 -0700 |
commit | 8fa8fb0af3aad065b1959a94e56307dc2b962596 (patch) | |
tree | 9daf43724b3dd0e4ddd20097b3cc3e0b90bc6069 /spec | |
parent | ca9708d32b2880baad62706b32a8db62d54da1ce (diff) | |
download | chef-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.rb | 16 |
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 |