diff options
Diffstat (limited to 'spec/unit/cookbook/chefignore_spec.rb')
-rw-r--r-- | spec/unit/cookbook/chefignore_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/unit/cookbook/chefignore_spec.rb b/spec/unit/cookbook/chefignore_spec.rb index aacb60c012..e529a6d05a 100644 --- a/spec/unit/cookbook/chefignore_spec.rb +++ b/spec/unit/cookbook/chefignore_spec.rb @@ -36,4 +36,14 @@ describe Chef::Cookbook::Chefignore do @chefignore.ignored?('recipes/ignoreme.rb').should be_true @chefignore.ignored?('recipes/dontignoreme.rb').should be_false end + + context "when using the single cookbook pattern" do + before do + @chefignore = Chef::Cookbook::Chefignore.new(File.join(CHEF_SPEC_DATA, 'standalone_cookbook')) + end + + it "loads the globs in the chefignore file" do + @chefignore.ignores.should =~ %w[recipes/ignoreme.rb ignored vendor/bundle/*] + end + end end |