test/unit/test_pathname.rb in csd-0.0.16 vs test/unit/test_pathname.rb in csd-0.1.0
- old
+ new
@@ -33,10 +33,10 @@
context "directories" do
should "return all subdirectory names as an array" do
result = Pathname.new(@tmp).children_directories.map { |pathname| pathname }
- assert_equal @subdirs.sort, result
+ assert_equal @subdirs.sort, result.sort
end
should "yield all subdirectories in a block" do
result = []
Pathname.new(@tmp).children_directories { |dir| result << dir }