qcumberless 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,13 +9,48 @@ module Qcumberless
9
9
  @io.flush
10
10
  super
11
11
  end
12
+
12
13
  def before_step_result(keyword, step_match, multiline_arg, status, exception, source_indent, background)
13
14
  if exception
14
15
  @io.printf("Step failed: ".indent(@scenario_indent + 2))
15
16
  @io.printf(exception)
16
17
  @io.printf("\n")
18
+ # @io.flush
19
+ elsif status == :undefined
20
+ @io.printf("Step failed: Step undefined\n".indent(@scenario_indent + 2))
21
+ # @io.flush
17
22
  end
23
+ super
24
+ end
25
+
26
+ def before_outline_table(outline_table)
27
+ @io.printf("Outline table\n".indent(@scenario_indent + 2))
18
28
  @io.flush
29
+ @header_row = true
30
+ super
31
+ end
32
+
33
+ def before_table_row(table_row)
34
+ @io.printf("Table row: ".indent(@scenario_indent + 2))
35
+ @io.printf(table_row.name)
36
+ @io.printf "\n"
37
+ @io.flush
38
+ super
39
+ end
40
+
41
+ def after_table_row(table_row)
42
+ unless @header_row
43
+ if table_row.exception
44
+ @io.printf("\nStep failed: ".indent(@scenario_indent + 2))
45
+ @io.printf(table_row.exception)
46
+ @io.printf("\n")
47
+ @io.flush
48
+ elsif table_row.status == :undefined
49
+ @io.printf("\nStep failed: Step undefined\n".indent(@scenario_indent + 2))
50
+ @io.flush
51
+ end
52
+ end
53
+ @header_row = false if @header_row
19
54
  super
20
55
  end
21
56
  end
@@ -1,3 +1,3 @@
1
1
  module Qcumberless
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Daniel Andersen
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2012-05-31 00:00:00 +02:00
17
+ date: 2012-06-04 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency