Permalink
Browse files

SimpleCov chokes if we emit coverage for psudo files.

  • Loading branch information...
brixen committed Sep 11, 2012
1 parent cfba61f commit c184888ba8d4ed5f873a0798a6da9836f93c6358
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/19/coverage.rb
View
@@ -20,6 +20,8 @@ def self.result
code = attr[:code]
file = code.file.to_s
+ next if file[0] == ?(
+
code.lines.to_a.drop(1).each_slice(2) do |line, _|
next unless line > 0
next if coverage[file][line - 1]

0 comments on commit c184888

Please sign in to comment.