travis-ci
281 of 281 new or added lines in 17 files covered. (100.0%)
483 of 536 relevant lines covered (90.11%)
38.52 hits per line
|
module TurnipFormatter |
15✔ |
|
module Html |
15✔ |
|
module StepTemplate |
15✔ |
|
class Base |
15✔ |
|
class << self |
15✔ |
|
def inherited(child) |
15✔ |
|
TurnipFormatter.step_templates << child.new
|
75✔ |
8 |
end
|
|
9 |
|
|
|
def on_passed(template) |
15✔ |
|
hooks[:passed] << template
|
45✔ |
12 |
end
|
|
13 |
|
|
|
def on_failed(template) |
15✔ |
|
hooks[:failed] << template
|
120✔ |
16 |
end
|
|
17 |
|
|
|
def on_pending(template) |
15✔ |
|
hooks[:pending] << template
|
60✔ |
20 |
end
|
|
21 |
|
|
|
def hooks |
15✔ |
|
@hooks ||= { passed: [], failed: [], pending: [] } |
480✔ |
24 |
end
|
|
25 |
|
|
26 |
#
|
|
27 |
# Return SCSS string that be used in this class
|
|
28 |
#
|
|
|
def scss |
15✔ |
|
''
|
× |
31 |
end
|
|
32 |
end
|
|
33 |
end
|
|
34 |
end
|
|
35 |
end
|
|
36 |
end
|