Permalink
Browse files

add missing spec for #process with block

  • Loading branch information...
1 parent aafca06 commit 338ae36205a435b83951245616c6c88b2556a787 @technoweenie committed Jan 25, 2008
Showing with 12 additions and 0 deletions.
  1. +12 −0 spec/duplikate_spec.rb
View
@@ -33,6 +33,18 @@
@duplikate.existing_files.should include("foo/same/changed.txt")
end
+ it "processes existing files using a block" do
+ @custom = []
+ @duplikate.process do |file|
+ @custom << file
+ end
+ @duplikate.should have(0).existing_files
+ @custom.size.should == 3
+ @custom.should include("same.txt")
+ @custom.should include("foo/same.txt")
+ @custom.should include("foo/same/changed.txt")
+ end
+
it "processes deleted_directories" do
@duplikate.should have(2).deleted_directories
@duplikate.deleted_directories.should include("deleteme")

0 comments on commit 338ae36

Please sign in to comment.