auxesis-cucumber-nagios 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,21 +8,21 @@ module Nagios
8
8
 
9
9
  def visit_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
10
10
  super
11
- name = "#{keyword} #{step_match.step_name}"
12
11
  case status
13
12
  when :passed
14
- @passed << name
13
+ @passed << step_match
15
14
  when :failed
16
- @failed << name
15
+ @failed << step_match
17
16
  end
18
17
  end
18
+
19
19
  def visit_steps(steps)
20
20
  super
21
- scenario_executed
21
+ print_summary
22
22
  end
23
23
 
24
24
  private
25
- def scenario_executed
25
+ def print_summary
26
26
  @total = @failed.size + @passed.size
27
27
  message = ""
28
28
  message += "Critical: #{@failed.size}, "
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auxesis-cucumber-nagios
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lindsay Holmwood