remove unwanted spaces in it calls, and make the spec counting regex tolerate them if they exist so counts match even when using bad style

This commit is contained in:
gvanhove
2011-11-14 18:43:13 -08:00
parent ac096f9911
commit d70e733f70
2 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ end
def count_specs_in(files)
files.inject(0) do |count, file|
File.read(file).scan(/\sit\(/) {|s| count += 1}
File.read(file).scan(/\sit\s*\(/) {|s| count += 1}
count
end
end