spec/unit/cookbook/chefignore_spec.rb in microwave-1.0.4 vs spec/unit/cookbook/chefignore_spec.rb in microwave-11.400.2

- old
+ new

@@ -21,18 +21,19 @@ before do @chefignore = Chef::Cookbook::Chefignore.new(File.join(CHEF_SPEC_DATA, 'cookbooks')) end it "loads the globs in the chefignore file" do - @chefignore.ignores.should =~ %w[recipes/ignoreme.rb] + @chefignore.ignores.should =~ %w[recipes/ignoreme.rb ignored] end it "removes items from an array that match the ignores" do file_list = %w[ recipes/ignoreme.rb recipes/dontignoreme.rb ] @chefignore.remove_ignores_from(file_list).should == %w[recipes/dontignoreme.rb] end it "determines if a file is ignored" do + @chefignore.ignored?('ignored').should be_true @chefignore.ignored?('recipes/ignoreme.rb').should be_true @chefignore.ignored?('recipes/dontignoreme.rb').should be_false end end