Permalink
Browse files

Fixed 'rake todo', broken after last mspec change

  • Loading branch information...
1 parent f26bb0c commit d348928c216d4591466ee35f3bd848897bb227c4 Ryan Davis committed Feb 25, 2008
Showing with 7 additions and 9 deletions.
  1. +7 −9 rakelib/todo.rake
View
@@ -2,19 +2,17 @@
task :todo do
excludes = Hash.new 0
- Dir.chdir "spec/data" do
- Find.find "." do |path|
- next unless File.file? path
- next unless File.size? path
- dir = File.dirname(path).sub(/^\../, '')
-
- excludes[dir] += File.readlines(path).size
- end
+ Find.find "spec/tags" do |path|
+ next unless File.file? path
+ next unless File.size? path
+ dir = File.dirname(path).sub(/^\../, '')
+
+ excludes[dir] += File.readlines(path).size
end
total = 0
excludes.sort_by { |_, v| -v }.each do |dir, count|
- puts "%3d: spec/%s" % [count, dir]
+ puts "%3d: %s" % [count, dir]
total += count
end
puts "%3d: TOTAL" % total

0 comments on commit d348928

Please sign in to comment.