cucumber 0.8.5 → 0.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (181) hide show
  1. data/.rspec +1 -1
  2. data/LICENSE +1 -1
  3. data/Rakefile +5 -51
  4. data/bin/cucumber +7 -1
  5. data/cucumber.gemspec +463 -679
  6. data/examples/i18n/ar/features/step_definitons/calculator_steps.rb +1 -1
  7. data/examples/i18n/he/features/step_definitons/calculator_steps.rb +1 -1
  8. data/examples/i18n/ro/features/step_definitons/calculator_steps.rb +4 -7
  9. data/examples/i18n/ru/features/division.feature +2 -2
  10. data/examples/i18n/tr/features/step_definitons/hesap_makinesi_adimlari.rb +3 -3
  11. data/examples/sinatra/features/support/env.rb +2 -5
  12. data/examples/v8/features/fibonacci.feature +1 -1
  13. data/examples/watir/features/step_definitions/search_steps.rb +1 -1
  14. data/features/background.feature +284 -95
  15. data/features/custom_formatter.feature +3 -73
  16. data/features/json_formatter.feature +160 -245
  17. data/features/step_definitions/cucumber_steps.rb +7 -153
  18. data/features/support/env.rb +18 -140
  19. data/fixtures/junit/features/pending.feature +3 -1
  20. data/fixtures/self_test/features/support/env.rb +8 -0
  21. data/fixtures/tickets/features.html +1 -1
  22. data/gem_tasks/examples.rake +1 -1
  23. data/lib/cucumber.rb +12 -0
  24. data/lib/cucumber/ast.rb +1 -1
  25. data/lib/cucumber/ast/background.rb +21 -5
  26. data/lib/cucumber/ast/examples.rb +12 -4
  27. data/lib/cucumber/ast/feature.rb +13 -5
  28. data/lib/cucumber/ast/feature_element.rb +9 -4
  29. data/lib/cucumber/ast/outline_table.rb +4 -4
  30. data/lib/cucumber/ast/scenario.rb +7 -5
  31. data/lib/cucumber/ast/scenario_outline.rb +23 -15
  32. data/lib/cucumber/ast/step.rb +5 -0
  33. data/lib/cucumber/ast/step_invocation.rb +21 -15
  34. data/lib/cucumber/ast/table.rb +14 -8
  35. data/lib/cucumber/ast/tree_walker.rb +10 -48
  36. data/lib/cucumber/cli/configuration.rb +33 -8
  37. data/lib/cucumber/cli/main.rb +20 -35
  38. data/lib/cucumber/cli/options.rb +8 -7
  39. data/lib/cucumber/cli/profile_loader.rb +2 -0
  40. data/lib/cucumber/core_ext/proc.rb +2 -1
  41. data/lib/cucumber/feature_file.rb +47 -15
  42. data/lib/cucumber/formatter/ansicolor.rb +3 -5
  43. data/lib/cucumber/formatter/console.rb +27 -23
  44. data/lib/cucumber/formatter/cucumber.css +34 -17
  45. data/lib/cucumber/formatter/cucumber.sass +173 -182
  46. data/lib/cucumber/formatter/html.rb +46 -11
  47. data/lib/cucumber/formatter/io.rb +2 -4
  48. data/lib/cucumber/formatter/json.rb +15 -152
  49. data/lib/cucumber/formatter/json_pretty.rb +5 -6
  50. data/lib/cucumber/formatter/junit.rb +28 -22
  51. data/lib/cucumber/formatter/pdf.rb +6 -6
  52. data/lib/cucumber/formatter/pretty.rb +5 -5
  53. data/lib/cucumber/formatter/rerun.rb +22 -11
  54. data/lib/cucumber/formatter/unicode.rb +41 -20
  55. data/lib/cucumber/js_support/js_dsl.js +4 -4
  56. data/lib/cucumber/js_support/js_language.rb +9 -5
  57. data/lib/cucumber/js_support/js_snippets.rb +2 -2
  58. data/lib/cucumber/language_support.rb +2 -2
  59. data/lib/cucumber/parser/gherkin_builder.rb +35 -30
  60. data/lib/cucumber/platform.rb +8 -8
  61. data/lib/cucumber/py_support/py_language.rb +2 -2
  62. data/lib/cucumber/rake/task.rb +80 -31
  63. data/lib/cucumber/rb_support/rb_dsl.rb +1 -0
  64. data/lib/cucumber/rb_support/rb_language.rb +10 -8
  65. data/lib/cucumber/rb_support/rb_step_definition.rb +8 -0
  66. data/lib/cucumber/rb_support/rb_transform.rb +17 -0
  67. data/lib/cucumber/rb_support/rb_world.rb +26 -18
  68. data/lib/cucumber/rspec/doubles.rb +3 -3
  69. data/lib/cucumber/step_match.rb +6 -2
  70. data/lib/cucumber/step_mother.rb +6 -427
  71. data/lib/cucumber/wire_support/configuration.rb +4 -1
  72. data/lib/cucumber/wire_support/wire_language.rb +3 -10
  73. data/spec/cucumber/ast/background_spec.rb +68 -6
  74. data/spec/cucumber/ast/feature_factory.rb +5 -4
  75. data/spec/cucumber/ast/feature_spec.rb +4 -4
  76. data/spec/cucumber/ast/outline_table_spec.rb +1 -1
  77. data/spec/cucumber/ast/scenario_outline_spec.rb +15 -11
  78. data/spec/cucumber/ast/scenario_spec.rb +4 -4
  79. data/spec/cucumber/ast/step_spec.rb +3 -3
  80. data/spec/cucumber/ast/table_spec.rb +38 -2
  81. data/spec/cucumber/ast/tree_walker_spec.rb +2 -2
  82. data/spec/cucumber/broadcaster_spec.rb +1 -1
  83. data/spec/cucumber/cli/configuration_spec.rb +32 -6
  84. data/spec/cucumber/cli/drb_client_spec.rb +2 -3
  85. data/spec/cucumber/cli/main_spec.rb +43 -43
  86. data/spec/cucumber/cli/options_spec.rb +28 -1
  87. data/spec/cucumber/cli/profile_loader_spec.rb +1 -1
  88. data/spec/cucumber/core_ext/proc_spec.rb +1 -1
  89. data/spec/cucumber/formatter/ansicolor_spec.rb +1 -1
  90. data/spec/cucumber/formatter/duration_spec.rb +1 -1
  91. data/spec/cucumber/formatter/html_spec.rb +3 -5
  92. data/spec/cucumber/formatter/junit_spec.rb +16 -2
  93. data/spec/cucumber/formatter/progress_spec.rb +1 -1
  94. data/spec/cucumber/formatter/spec_helper.rb +11 -12
  95. data/spec/cucumber/rb_support/rb_language_spec.rb +241 -28
  96. data/spec/cucumber/rb_support/rb_step_definition_spec.rb +33 -28
  97. data/spec/cucumber/rb_support/regexp_argument_matcher_spec.rb +1 -1
  98. data/spec/cucumber/step_match_spec.rb +11 -9
  99. data/spec/cucumber/wire_support/configuration_spec.rb +1 -1
  100. data/spec/cucumber/wire_support/connection_spec.rb +1 -1
  101. data/spec/cucumber/wire_support/wire_exception_spec.rb +1 -1
  102. data/spec/cucumber/wire_support/wire_language_spec.rb +1 -1
  103. data/spec/cucumber/wire_support/wire_packet_spec.rb +1 -1
  104. data/spec/cucumber/wire_support/wire_step_definition_spec.rb +1 -1
  105. data/spec/cucumber/world/pending_spec.rb +2 -2
  106. data/spec/spec_helper.rb +13 -20
  107. metadata +11 -222
  108. data/.gitignore +0 -20
  109. data/Caliper.yml +0 -4
  110. data/History.txt +0 -1552
  111. data/README.rdoc +0 -26
  112. data/VERSION.yml +0 -5
  113. data/examples/i18n/ro/features/suma.feature +0 -11
  114. data/features/announce.feature +0 -164
  115. data/features/around_hooks.feature +0 -232
  116. data/features/bug_371.feature +0 -32
  117. data/features/bug_464.feature +0 -16
  118. data/features/bug_475.feature +0 -42
  119. data/features/bug_585_tab_indentation.feature +0 -22
  120. data/features/bug_600.feature +0 -67
  121. data/features/call_steps_from_stepdefs.feature +0 -154
  122. data/features/cucumber_cli.feature +0 -591
  123. data/features/cucumber_cli_outlines.feature +0 -117
  124. data/features/default_snippets.feature +0 -42
  125. data/features/diffing.feature +0 -25
  126. data/features/drb_server_integration.feature +0 -174
  127. data/features/exception_in_after_block.feature +0 -127
  128. data/features/exception_in_after_step_block.feature +0 -104
  129. data/features/exception_in_before_block.feature +0 -98
  130. data/features/exclude_files.feature +0 -20
  131. data/features/expand.feature +0 -60
  132. data/features/html_formatter.feature +0 -8
  133. data/features/html_formatter/a.html +0 -582
  134. data/features/junit_formatter.feature +0 -88
  135. data/features/language_from_header.feature +0 -30
  136. data/features/language_help.feature +0 -78
  137. data/features/listener_debugger_formatter.feature +0 -42
  138. data/features/multiline_names.feature +0 -44
  139. data/features/negative_tagged_hooks.feature +0 -60
  140. data/features/post_configuration_hook.feature +0 -37
  141. data/features/profiles.feature +0 -126
  142. data/features/rake_task.feature +0 -152
  143. data/features/report_called_undefined_steps.feature +0 -34
  144. data/features/rerun_formatter.feature +0 -45
  145. data/features/simplest.feature +0 -11
  146. data/features/snippet.feature +0 -23
  147. data/features/snippets_when_using_star_keyword.feature +0 -36
  148. data/features/step_definitions/extra_steps.rb +0 -2
  149. data/features/step_definitions/simplest_steps.rb +0 -3
  150. data/features/step_definitions/wire_steps.rb +0 -32
  151. data/features/support/env.rb.simplest +0 -7
  152. data/features/support/fake_wire_server.rb +0 -77
  153. data/features/table_diffing.feature +0 -45
  154. data/features/table_mapping.feature +0 -34
  155. data/features/tag_logic.feature +0 -258
  156. data/features/transform.feature +0 -245
  157. data/features/unicode_table.feature +0 -35
  158. data/features/usage_and_stepdefs_formatter.feature +0 -169
  159. data/features/wire_protocol.feature +0 -332
  160. data/features/wire_protocol_table_diffing.feature +0 -119
  161. data/features/wire_protocol_tags.feature +0 -87
  162. data/features/wire_protocol_timeouts.feature +0 -63
  163. data/features/work_in_progress.feature +0 -156
  164. data/fixtures/json/features/pystring.feature +0 -8
  165. data/fixtures/self_test/features/background/background_tagged_before_on_outline.feature +0 -12
  166. data/fixtures/self_test/features/background/background_with_name.feature +0 -7
  167. data/fixtures/self_test/features/background/failing_background.feature +0 -12
  168. data/fixtures/self_test/features/background/failing_background_after_success.feature +0 -11
  169. data/fixtures/self_test/features/background/multiline_args_background.feature +0 -32
  170. data/fixtures/self_test/features/background/passing_background.feature +0 -10
  171. data/fixtures/self_test/features/background/pending_background.feature +0 -10
  172. data/fixtures/self_test/features/background/scenario_outline_failing_background.feature +0 -16
  173. data/fixtures/self_test/features/background/scenario_outline_passing_background.feature +0 -16
  174. data/gem_tasks/features.rake +0 -14
  175. data/gem_tasks/sdoc.rake +0 -12
  176. data/lib/cucumber/ast/py_string.rb +0 -80
  177. data/lib/cucumber/formatter/color_io.rb +0 -23
  178. data/lib/cucumber/formatter/tag_cloud.rb +0 -35
  179. data/spec/cucumber/ast/py_string_spec.rb +0 -40
  180. data/spec/cucumber/formatter/color_io_spec.rb +0 -29
  181. data/spec/cucumber/step_mother_spec.rb +0 -302
@@ -26,13 +26,15 @@ module Cucumber
26
26
  format_string(line, status)
27
27
  end
28
28
 
29
- def format_string(string, status)
29
+ def format_string(o, status)
30
30
  fmt = format_for(status)
31
- if Proc === fmt
32
- fmt.call(string)
33
- else
34
- fmt % string
35
- end
31
+ o.to_s.split("\n").map do |line|
32
+ if Proc === fmt
33
+ fmt.call(line)
34
+ else
35
+ fmt % line
36
+ end
37
+ end.join("\n")
36
38
  end
37
39
 
38
40
  def print_steps(status)
@@ -125,43 +127,45 @@ module Cucumber
125
127
  end
126
128
  end
127
129
 
128
- def embed(file, mime_type)
130
+ def embed(file, mime_type, label)
129
131
  # no-op
130
132
  end
131
133
 
132
- #define @delayed_announcements = [] in your Formatter if you want to
134
+ #define @delayed_messages = [] in your Formatter if you want to
133
135
  #activate this feature
134
- def announce(announcement)
135
- if @delayed_announcements
136
- @delayed_announcements << announcement
136
+ def puts(*messages)
137
+ if @delayed_messages
138
+ @delayed_messages += messages
137
139
  else
138
140
  if @io
139
141
  @io.puts
140
- @io.puts(format_string(announcement, :tag))
142
+ messages.each do |message|
143
+ @io.puts(format_string(message, :tag))
144
+ end
141
145
  @io.flush
142
146
  end
143
147
  end
144
148
  end
145
149
 
146
- def print_announcements()
147
- @delayed_announcements.each {|ann| print_announcement(ann)}
148
- empty_announcements
150
+ def print_messages
151
+ @delayed_messages.each {|message| print_message(message)}
152
+ empty_messages
149
153
  end
150
154
 
151
- def print_table_row_announcements
152
- return if @delayed_announcements.empty?
153
- @io.print(format_string(@delayed_announcements.join(', '), :tag).indent(2))
155
+ def print_table_row_messages
156
+ return if @delayed_messages.empty?
157
+ @io.print(format_string(@delayed_messages.join(', '), :tag).indent(2))
154
158
  @io.flush
155
- empty_announcements
159
+ empty_messages
156
160
  end
157
161
 
158
- def print_announcement(announcement)
159
- @io.puts(format_string(announcement, :tag).indent(@indent))
162
+ def print_message(message)
163
+ @io.puts(format_string(message, :tag).indent(@indent))
160
164
  @io.flush
161
165
  end
162
166
 
163
- def empty_announcements
164
- @delayed_announcements = []
167
+ def empty_messages
168
+ @delayed_messages = []
165
169
  end
166
170
 
167
171
  private
@@ -2,7 +2,7 @@
2
2
  /* Regenerate with rake sass */
3
3
  body {
4
4
  font-size: 0px;
5
- color: #FFFFFF;
5
+ color: white;
6
6
  margin: 0px;
7
7
  padding: 0px;
8
8
  }
@@ -10,11 +10,11 @@ body {
10
10
  .cucumber, td, th {
11
11
  font: normal 11px "Lucida Grande", Helvetica, sans-serif;
12
12
  background: white;
13
- color: #000000;
13
+ color: black;
14
14
  }
15
15
  .cucumber #cucumber-header, td #cucumber-header, th #cucumber-header {
16
- background: #65C400;
17
- color: #FFFFFF;
16
+ background: #65c400;
17
+ color: white;
18
18
  height: 6em;
19
19
  }
20
20
  .cucumber #cucumber-header #expand-collapse p, td #cucumber-header #expand-collapse p, th #cucumber-header #expand-collapse p {
@@ -25,8 +25,8 @@ body {
25
25
  font-size: 11px;
26
26
  padding: 3px;
27
27
  margin: 0;
28
- background: #65C400;
29
- color: #FFFFFF;
28
+ background: #65c400;
29
+ color: white;
30
30
  font-weight: bold;
31
31
  }
32
32
  .cucumber h1, td h1, th h1 {
@@ -62,19 +62,23 @@ body {
62
62
  .cucumber .step_file a, td .step_file a, th .step_file a {
63
63
  color: #999999;
64
64
  }
65
+ .cucumber .scenario_file, td .scenario_file, th .scenario_file {
66
+ float: right;
67
+ color: #999999;
68
+ }
65
69
  .cucumber .tag, td .tag, th .tag {
66
70
  font-weight: bold;
67
- color: #246AC1;
71
+ color: #246ac1;
68
72
  }
69
73
  .cucumber .backtrace, td .backtrace, th .backtrace {
70
74
  margin-top: 0;
71
75
  margin-bottom: 0;
72
76
  margin-left: 1em;
73
- color: #000000;
77
+ color: black;
74
78
  }
75
79
  .cucumber a, td a, th a {
76
80
  text-decoration: none;
77
- color: #BE5C00;
81
+ color: #be5c00;
78
82
  }
79
83
  .cucumber a:hover, td a:hover, th a:hover {
80
84
  text-decoration: underline;
@@ -84,7 +88,7 @@ body {
84
88
  }
85
89
  .cucumber a div.examples, td a div.examples, th a div.examples {
86
90
  margin: 5px 0px 5px 15px;
87
- color: #000000;
91
+ color: black;
88
92
  }
89
93
  .cucumber .outline table, td .outline table, th .outline table {
90
94
  margin: 0px 0px 5px 10px;
@@ -129,6 +133,12 @@ body {
129
133
  background: #fcfb98;
130
134
  color: #131313;
131
135
  }
136
+ .cucumber table td.message, td table td.message, th table td.message {
137
+ border-left: 5px solid aqua;
138
+ border-bottom: 1px solid aqua;
139
+ background: #e0ffff;
140
+ color: #001111;
141
+ }
132
142
  .cucumber ol, td ol, th ol {
133
143
  list-style: none;
134
144
  margin: 0px;
@@ -175,6 +185,13 @@ body {
175
185
  background: #fcfb98;
176
186
  color: #131313;
177
187
  }
188
+ .cucumber ol li.message, td ol li.message, th ol li.message {
189
+ border-left: 5px solid aqua;
190
+ border-bottom: 1px solid aqua;
191
+ background: #e0ffff;
192
+ color: #001111;
193
+ margin-left: 10px;
194
+ }
178
195
  .cucumber #summary, td #summary, th #summary {
179
196
  margin: 0px;
180
197
  padding: 5px 10px;
@@ -198,7 +215,7 @@ body {
198
215
  padding: 0.1em 0 0.2em 0;
199
216
  }
200
217
  .ruby .keyword {
201
- color: #FF6600;
218
+ color: #ff6600;
202
219
  }
203
220
  .ruby .constant {
204
221
  color: #339999;
@@ -216,13 +233,13 @@ body {
216
233
  color: white;
217
234
  }
218
235
  .ruby .string {
219
- color: #66FF00;
236
+ color: #66ff00;
220
237
  }
221
238
  .ruby .ident {
222
239
  color: white;
223
240
  }
224
241
  .ruby .method {
225
- color: #FFCC00;
242
+ color: #ffcc00;
226
243
  }
227
244
  .ruby .number {
228
245
  color: white;
@@ -231,13 +248,13 @@ body {
231
248
  color: white;
232
249
  }
233
250
  .ruby .comment {
234
- color: #9933CC;
251
+ color: #9933cc;
235
252
  }
236
253
  .ruby .symbol {
237
254
  color: white;
238
255
  }
239
256
  .ruby .regex {
240
- color: #44B4CC;
257
+ color: #44b4cc;
241
258
  }
242
259
  .ruby .punct {
243
260
  color: white;
@@ -257,6 +274,6 @@ body {
257
274
  .ruby .linenum {
258
275
  width: 75px;
259
276
  padding: 0.1em 1em 0.2em 0;
260
- color: #000000;
261
- background: #FFFBD3;
277
+ color: black;
278
+ background: #fffbd3;
262
279
  }
@@ -1,256 +1,247 @@
1
1
  /* cucumber.css is generated from cucumber.sass */
2
2
  /* Regenerate with rake sass */
3
3
 
4
- !step_left = 5px "solid"
5
- !step_bottom = 1px "solid"
4
+ $step_left: 5px solid
5
+ $step_bottom: 1px solid
6
6
 
7
- !failed = #FFFBD3
8
- !failed_border = #C20000
9
- !failed_text = #C20000
7
+ $failed: #fffbd3
8
+ $failed_border: #c20000
9
+ $failed_text: #c20000
10
10
 
11
- !passed = #DBFFB4
12
- !passed_border = #65C400
13
- !passed_text = #3D7700
11
+ $passed: #dbffb4
12
+ $passed_border: #65c400
13
+ $passed_text: #3d7700
14
14
 
15
- !skipped = #E0FFFF
16
- !skipped_border = #00FFFF
17
- !skipped_text = #001111
15
+ $skipped: #e0ffff
16
+ $skipped_border: aqua
17
+ $skipped_text: #001111
18
18
 
19
- !pending = #FCFB98
20
- !pending_border = #FAF834
21
- !pending_text = #131313
19
+ $pending: #fcfb98
20
+ $pending_border: #faf834
21
+ $pending_text: #131313
22
22
 
23
- !undefined = #FCFB98
24
- !undefined_border = #FAF834
25
- !undefined_text = #131313
23
+ $undefined: #fcfb98
24
+ $undefined_border: #faf834
25
+ $undefined_text: #131313
26
+
27
+ $message: #e0ffff
28
+ $message_border: aqua
29
+ $message_text: #001111
26
30
 
27
31
  body
28
- :font-size 0px
29
- :color #FFFFFF
30
- :margin 0px
31
- :padding 0px
32
+ font-size: 0px
33
+ color: white
34
+ margin: 0px
35
+ padding: 0px
32
36
 
33
37
  .cucumber,td,th
34
- :font normal 11px "Lucida Grande", Helvetica, sans-serif
35
- :background white
36
- :color #000000
37
-
38
+ font: normal 11px "Lucida Grande", Helvetica, sans-serif
39
+ background: white
40
+ color: black
38
41
  #cucumber-header
39
- :background #65C400
40
- :color #FFFFFF
41
- :height 6em
42
-
42
+ background: #65c400
43
+ color: white
44
+ height: 6em
43
45
  #expand-collapse
44
46
  p
45
- :float right
46
- :margin 0 0 0 10px
47
-
47
+ float: right
48
+ margin: 0 0 0 10px
48
49
  .scenario
49
50
  h3
50
- :font-size 11px
51
- :padding 3px
52
- :margin 0
53
- :background #65C400
54
- :color #FFFFFF
55
- :font-weight bold
56
-
51
+ font-size: 11px
52
+ padding: 3px
53
+ margin: 0
54
+ background: #65c400
55
+ color: white
56
+ font-weight: bold
57
57
  h1
58
- :margin 0px 10px 0px 10px
59
- :padding 10px
60
- :font-family "Lucida Grande", Helvetica, sans-serif
61
- :font-size 2em
62
- :position absolute
63
-
58
+ margin: 0px 10px 0px 10px
59
+ padding: 10px
60
+ font-family: "Lucida Grande", Helvetica, sans-serif
61
+ font-size: 2em
62
+ position: absolute
64
63
  h4
65
- :margin-bottom 2px
66
-
64
+ margin-bottom: 2px
67
65
  div.feature
68
- :padding 2px
69
- :margin 0px 10px 5px 10px
70
-
66
+ padding: 2px
67
+ margin: 0px 10px 5px 10px
71
68
  div.examples
72
- :padding 0em 0em 0em 1em
73
-
69
+ padding: 0em 0em 0em 1em
74
70
  .stats
75
- :margin 2em
76
-
71
+ margin: 2em
77
72
  .summary
78
73
  ul.features
79
74
  li
80
- :display inline
81
-
75
+ display: inline
82
76
  .step_name
83
- :float left
84
-
77
+ float: left
85
78
  .step_file
86
- :text-align right
87
- :color #999999
79
+ text-align: right
80
+ color: #999999
88
81
  a
89
- :color #999999
90
-
91
-
82
+ color: #999999
83
+ .scenario_file
84
+ float: right
85
+ color: #999999
92
86
  .tag
93
- :font-weight bold
94
- :color #246AC1
95
-
87
+ font-weight: bold
88
+ color: #246ac1
96
89
  .backtrace
97
- :margin-top 0
98
- :margin-bottom 0
99
- :margin-left 1em
100
- :color #000000
101
-
90
+ margin-top: 0
91
+ margin-bottom: 0
92
+ margin-left: 1em
93
+ color: black
102
94
  a
103
- :text-decoration none
104
- :color #BE5C00
105
-
95
+ text-decoration: none
96
+ color: #be5c00
106
97
  &:hover
107
- :text-decoration underline
98
+ text-decoration: underline
108
99
  &:visited
109
- :font-weight normal
110
-
100
+ font-weight: normal
111
101
  div.examples
112
- :margin 5px 0px 5px 15px
113
- :color #000000
114
-
102
+ margin: 5px 0px 5px 15px
103
+ color: black
115
104
  .outline
116
105
  table
117
- :margin 0px 0px 5px 10px
118
-
106
+ margin: 0px 0px 5px 10px
119
107
  table
120
- :border-collapse collapse
108
+ border-collapse: collapse
121
109
  td
122
- :padding 3px 3px 3px 5px
110
+ padding: 3px 3px 3px 5px
123
111
  td.failed, td.passed, td.skipped, td.pending, td.undefined
124
- :padding-left 18px
125
- :padding-right 10px
112
+ padding-left: 18px
113
+ padding-right: 10px
126
114
  td.failed
127
- :border-left= !step_left !failed_border
128
- :border-bottom= !step_bottom !failed_border
129
- :background= !failed
130
- :color= !failed_text
115
+ border-left: $step_left $failed_border
116
+ border-bottom: $step_bottom $failed_border
117
+ background: $failed
118
+ color: $failed_text
131
119
  td.passed
132
- :border-left= !step_left !passed_border
133
- :border-bottom= !step_bottom !passed_border
134
- :background= !passed
135
- :color= !passed_text
120
+ border-left: $step_left $passed_border
121
+ border-bottom: $step_bottom $passed_border
122
+ background: $passed
123
+ color: $passed_text
136
124
  td.skipped
137
- :border-left= !step_left !skipped_border
138
- :border-bottom= !step_bottom !skipped_border
139
- :background= !skipped
140
- :color= !skipped_text
125
+ border-left: $step_left $skipped_border
126
+ border-bottom: $step_bottom $skipped_border
127
+ background: $skipped
128
+ color: $skipped_text
141
129
  td.pending
142
- :border-left= !step_left !pending_border
143
- :border-bottom= !step_bottom !pending_border
144
- :background= !pending
145
- :color= !pending_text
130
+ border-left: $step_left $pending_border
131
+ border-bottom: $step_bottom $pending_border
132
+ background: $pending
133
+ color: $pending_text
146
134
  td.undefined
147
- :border-left= !step_left !undefined_border
148
- :border-bottom= !step_bottom !undefined_border
149
- :background= !undefined
150
- :color= !undefined_text
151
-
135
+ border-left: $step_left $undefined_border
136
+ border-bottom: $step_bottom $undefined_border
137
+ background: $undefined
138
+ color: $undefined_text
139
+ td.message
140
+ border-left: $step_left $message_border
141
+ border-bottom: $step_bottom $message_border
142
+ background: $message
143
+ color: $message_text
152
144
  ol
153
- :list-style none
154
- :margin 0px
155
- :padding 0px
156
-
145
+ list-style: none
146
+ margin: 0px
147
+ padding: 0px
157
148
  li.step
158
- :padding 3px 3px 3px 18px
159
- :margin 5px 0px 5px 5px
149
+ padding: 3px 3px 3px 18px
150
+ margin: 5px 0px 5px 5px
160
151
  li
161
- :margin 0em 0em 0em 1em
162
- :padding 0em 0em 0em 0.2em
152
+ margin: 0em 0em 0em 1em
153
+ padding: 0em 0em 0em 0.2em
163
154
  span.param
164
- :font-weight bold
155
+ font-weight: bold
165
156
  li.failed
166
- :border-left= !step_left !failed_border
167
- :border-bottom= !step_bottom !failed_border
168
- :background= !failed
169
- :color= !failed_text
157
+ border-left: $step_left $failed_border
158
+ border-bottom: $step_bottom $failed_border
159
+ background: $failed
160
+ color: $failed_text
170
161
  li.passed
171
- :border-left= !step_left !passed_border
172
- :border-bottom= !step_bottom !passed_border
173
- :background= !passed
174
- :color= !passed_text
162
+ border-left: $step_left $passed_border
163
+ border-bottom: $step_bottom $passed_border
164
+ background: $passed
165
+ color: $passed_text
175
166
  li.skipped
176
- :border-left= !step_left !skipped_border
177
- :border-bottom= !step_bottom !skipped_border
178
- :background= !skipped
179
- :color= !skipped_text
167
+ border-left: $step_left $skipped_border
168
+ border-bottom: $step_bottom $skipped_border
169
+ background: $skipped
170
+ color: $skipped_text
180
171
  li.pending
181
- :border-left= !step_left !pending_border
182
- :border-bottom= !step_bottom !pending_border
183
- :background= !pending
184
- :color= !pending_text
172
+ border-left: $step_left $pending_border
173
+ border-bottom: $step_bottom $pending_border
174
+ background: $pending
175
+ color: $pending_text
185
176
  li.undefined
186
- :border-left= !step_left !undefined_border
187
- :border-bottom= !step_bottom !undefined_border
188
- :background= !undefined
189
- :color= !undefined_text
190
-
177
+ border-left: $step_left $undefined_border
178
+ border-bottom: $step_bottom $undefined_border
179
+ background: $undefined
180
+ color: $undefined_text
181
+ li.message
182
+ border-left: $step_left $message_border
183
+ border-bottom: $step_bottom $message_border
184
+ background: $message
185
+ color: $message_text
186
+ margin-left: 10px
191
187
  #summary
192
- :margin 0px
193
- :padding 5px 10px
194
- :text-align right
195
- :top 0px
196
- :right 0px
197
- :float right
198
-
188
+ margin: 0px
189
+ padding: 5px 10px
190
+ text-align: right
191
+ top: 0px
192
+ right: 0px
193
+ float: right
199
194
  p
200
- :margin 0 0 0 2px
201
-
195
+ margin: 0 0 0 2px
202
196
  #totals
203
- :font-size 1.2em
204
-
205
- .ruby
206
- :font-size 12px
207
- :font-family monospace
208
- :color white
209
- :background black
210
- :padding 0.1em 0 0.2em 0
197
+ font-size: 1.2em
211
198
 
212
- .keyword
213
- :color #FF6600
199
+ .ruby
200
+ font-size: 12px
201
+ font-family: monospace
202
+ color: white
203
+ background: black
204
+ padding: 0.1em 0 0.2em 0
205
+ .keyword
206
+ color: #ff6600
214
207
  .constant
215
- :color #339999
208
+ color: #339999
216
209
  .attribute
217
- :color white
210
+ color: white
218
211
  .global
219
- :color white
212
+ color: white
220
213
  .module
221
- :color white
214
+ color: white
222
215
  .class
223
- :color white
216
+ color: white
224
217
  .string
225
- :color #66FF00
218
+ color: #66ff00
226
219
  .ident
227
- :color white
220
+ color: white
228
221
  .method
229
- :color #FFCC00
222
+ color: #ffcc00
230
223
  .number
231
- :color white
224
+ color: white
232
225
  .char
233
- :color white
226
+ color: white
234
227
  .comment
235
- :color #9933CC
228
+ color: #9933cc
236
229
  .symbol
237
- :color white
230
+ color: white
238
231
  .regex
239
- :color #44B4CC
232
+ color: #44b4cc
240
233
  .punct
241
- :color white
234
+ color: white
242
235
  .escape
243
- :color white
244
- .interp
245
- :color white
246
- .expr
247
- :color white
248
-
236
+ color: white
237
+ .interp
238
+ color: white
239
+ .expr
240
+ color: white
249
241
  .offending
250
- :background #333333
242
+ background: #333333
251
243
  .linenum
252
- :width 75px
253
- :padding 0.1em 1em 0.2em 0
254
- :color #000000
255
- :background #FFFBD3
256
-
244
+ width: 75px
245
+ padding: 0.1em 1em 0.2em 0
246
+ color: black
247
+ background: #fffbd3