Revision c9140ad1
Added by Ohad Levy about 14 years ago
- ID c9140ad1a135b6c84b8a98c8b76b1486e8e5f3c7
app/models/report.rb | ||
---|---|---|
|
||
# returns true if total error metrics are > 0
|
||
def error?
|
||
%w[failed failed_restarts skipped].sum {|f| status f} > 0
|
||
%w[failed failed_restarts].sum {|f| status f} > 0
|
||
end
|
||
|
||
# returns true if total action metrics are > 0
|
Also available in: Unified diff
fixes #238 - Report wrong marked