gherkin 2.12.0-x86-mingw32 → 2.12.1-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +6 -14
  2. data/.ruby-version +1 -1
  3. data/.travis.yml +1 -3
  4. data/History.md +18 -0
  5. data/LICENSE +1 -1
  6. data/README.md +22 -28
  7. data/features/.cucumber/stepdefs.json +66 -66
  8. data/gherkin.gemspec +12 -11
  9. data/lib/1.9/gherkin_lexer_ar.so +0 -0
  10. data/lib/1.9/gherkin_lexer_bg.so +0 -0
  11. data/lib/1.9/gherkin_lexer_bm.so +0 -0
  12. data/lib/1.9/gherkin_lexer_ca.so +0 -0
  13. data/lib/1.9/gherkin_lexer_cs.so +0 -0
  14. data/lib/1.9/gherkin_lexer_cy_gb.so +0 -0
  15. data/lib/1.9/gherkin_lexer_da.so +0 -0
  16. data/lib/1.9/gherkin_lexer_de.so +0 -0
  17. data/lib/1.9/gherkin_lexer_el.so +0 -0
  18. data/lib/1.9/gherkin_lexer_en.so +0 -0
  19. data/lib/1.9/gherkin_lexer_en_au.so +0 -0
  20. data/lib/1.9/gherkin_lexer_en_lol.so +0 -0
  21. data/lib/1.9/gherkin_lexer_en_old.so +0 -0
  22. data/lib/1.9/gherkin_lexer_en_pirate.so +0 -0
  23. data/lib/1.9/gherkin_lexer_en_scouse.so +0 -0
  24. data/lib/1.9/gherkin_lexer_en_tx.so +0 -0
  25. data/lib/1.9/gherkin_lexer_eo.so +0 -0
  26. data/lib/1.9/gherkin_lexer_es.so +0 -0
  27. data/lib/1.9/gherkin_lexer_et.so +0 -0
  28. data/lib/1.9/gherkin_lexer_fa.so +0 -0
  29. data/lib/1.9/gherkin_lexer_fi.so +0 -0
  30. data/lib/1.9/gherkin_lexer_fr.so +0 -0
  31. data/lib/1.9/gherkin_lexer_gl.so +0 -0
  32. data/lib/1.9/gherkin_lexer_he.so +0 -0
  33. data/lib/1.9/gherkin_lexer_hi.so +0 -0
  34. data/lib/1.9/gherkin_lexer_hr.so +0 -0
  35. data/lib/1.9/gherkin_lexer_hu.so +0 -0
  36. data/lib/1.9/gherkin_lexer_id.so +0 -0
  37. data/lib/1.9/gherkin_lexer_is.so +0 -0
  38. data/lib/1.9/gherkin_lexer_it.so +0 -0
  39. data/lib/1.9/gherkin_lexer_ja.so +0 -0
  40. data/lib/1.9/gherkin_lexer_ko.so +0 -0
  41. data/lib/1.9/gherkin_lexer_lt.so +0 -0
  42. data/lib/1.9/gherkin_lexer_lu.so +0 -0
  43. data/lib/1.9/gherkin_lexer_lv.so +0 -0
  44. data/lib/1.9/gherkin_lexer_nl.so +0 -0
  45. data/lib/1.9/gherkin_lexer_no.so +0 -0
  46. data/lib/1.9/gherkin_lexer_pa.so +0 -0
  47. data/lib/1.9/gherkin_lexer_pl.so +0 -0
  48. data/lib/1.9/gherkin_lexer_pt.so +0 -0
  49. data/lib/1.9/gherkin_lexer_ro.so +0 -0
  50. data/lib/1.9/gherkin_lexer_ru.so +0 -0
  51. data/lib/1.9/gherkin_lexer_sk.so +0 -0
  52. data/lib/1.9/gherkin_lexer_sr_cyrl.so +0 -0
  53. data/lib/1.9/gherkin_lexer_sr_latn.so +0 -0
  54. data/lib/1.9/gherkin_lexer_sv.so +0 -0
  55. data/lib/1.9/gherkin_lexer_th.so +0 -0
  56. data/lib/1.9/gherkin_lexer_tl.so +0 -0
  57. data/lib/1.9/gherkin_lexer_tr.so +0 -0
  58. data/lib/1.9/gherkin_lexer_tt.so +0 -0
  59. data/lib/1.9/gherkin_lexer_uk.so +0 -0
  60. data/lib/1.9/gherkin_lexer_uz.so +0 -0
  61. data/lib/1.9/gherkin_lexer_vi.so +0 -0
  62. data/lib/1.9/gherkin_lexer_zh_cn.so +0 -0
  63. data/lib/1.9/gherkin_lexer_zh_tw.so +0 -0
  64. data/lib/2.0/gherkin_lexer_ar.so +0 -0
  65. data/lib/2.0/gherkin_lexer_bg.so +0 -0
  66. data/lib/2.0/gherkin_lexer_bm.so +0 -0
  67. data/lib/2.0/gherkin_lexer_ca.so +0 -0
  68. data/lib/2.0/gherkin_lexer_cs.so +0 -0
  69. data/lib/2.0/gherkin_lexer_cy_gb.so +0 -0
  70. data/lib/2.0/gherkin_lexer_da.so +0 -0
  71. data/lib/2.0/gherkin_lexer_de.so +0 -0
  72. data/lib/2.0/gherkin_lexer_el.so +0 -0
  73. data/lib/2.0/gherkin_lexer_en.so +0 -0
  74. data/lib/2.0/gherkin_lexer_en_au.so +0 -0
  75. data/lib/2.0/gherkin_lexer_en_lol.so +0 -0
  76. data/lib/2.0/gherkin_lexer_en_old.so +0 -0
  77. data/lib/2.0/gherkin_lexer_en_pirate.so +0 -0
  78. data/lib/2.0/gherkin_lexer_en_scouse.so +0 -0
  79. data/lib/2.0/gherkin_lexer_en_tx.so +0 -0
  80. data/lib/2.0/gherkin_lexer_eo.so +0 -0
  81. data/lib/2.0/gherkin_lexer_es.so +0 -0
  82. data/lib/2.0/gherkin_lexer_et.so +0 -0
  83. data/lib/2.0/gherkin_lexer_fa.so +0 -0
  84. data/lib/2.0/gherkin_lexer_fi.so +0 -0
  85. data/lib/2.0/gherkin_lexer_fr.so +0 -0
  86. data/lib/2.0/gherkin_lexer_gl.so +0 -0
  87. data/lib/2.0/gherkin_lexer_he.so +0 -0
  88. data/lib/2.0/gherkin_lexer_hi.so +0 -0
  89. data/lib/2.0/gherkin_lexer_hr.so +0 -0
  90. data/lib/2.0/gherkin_lexer_hu.so +0 -0
  91. data/lib/2.0/gherkin_lexer_id.so +0 -0
  92. data/lib/2.0/gherkin_lexer_is.so +0 -0
  93. data/lib/2.0/gherkin_lexer_it.so +0 -0
  94. data/lib/2.0/gherkin_lexer_ja.so +0 -0
  95. data/lib/2.0/gherkin_lexer_ko.so +0 -0
  96. data/lib/2.0/gherkin_lexer_lt.so +0 -0
  97. data/lib/2.0/gherkin_lexer_lu.so +0 -0
  98. data/lib/2.0/gherkin_lexer_lv.so +0 -0
  99. data/lib/2.0/gherkin_lexer_nl.so +0 -0
  100. data/lib/2.0/gherkin_lexer_no.so +0 -0
  101. data/lib/2.0/gherkin_lexer_pa.so +0 -0
  102. data/lib/2.0/gherkin_lexer_pl.so +0 -0
  103. data/lib/2.0/gherkin_lexer_pt.so +0 -0
  104. data/lib/2.0/gherkin_lexer_ro.so +0 -0
  105. data/lib/2.0/gherkin_lexer_ru.so +0 -0
  106. data/lib/2.0/gherkin_lexer_sk.so +0 -0
  107. data/lib/2.0/gherkin_lexer_sr_cyrl.so +0 -0
  108. data/lib/2.0/gherkin_lexer_sr_latn.so +0 -0
  109. data/lib/2.0/gherkin_lexer_sv.so +0 -0
  110. data/lib/2.0/gherkin_lexer_th.so +0 -0
  111. data/lib/2.0/gherkin_lexer_tl.so +0 -0
  112. data/lib/2.0/gherkin_lexer_tr.so +0 -0
  113. data/lib/2.0/gherkin_lexer_tt.so +0 -0
  114. data/lib/2.0/gherkin_lexer_uk.so +0 -0
  115. data/lib/2.0/gherkin_lexer_uz.so +0 -0
  116. data/lib/2.0/gherkin_lexer_vi.so +0 -0
  117. data/lib/2.0/gherkin_lexer_zh_cn.so +0 -0
  118. data/lib/2.0/gherkin_lexer_zh_tw.so +0 -0
  119. data/lib/gherkin/formatter/filter_formatter.rb +1 -1
  120. data/lib/gherkin/i18n.json +38 -10
  121. data/lib/gherkin/i18n.rb +1 -1
  122. data/lib/gherkin/platform.rb +2 -2
  123. data/spec/gherkin/formatter/json_formatter_spec.rb +4 -0
  124. data/spec/gherkin/formatter/pretty_formatter_spec.rb +25 -18
  125. data/spec/gherkin/i18n_spec.rb +2 -0
  126. data/tasks/gems.rake +19 -4
  127. data/tasks/ikvm.rake +10 -7
  128. data/tasks/ragel_task.rb +3 -2
  129. data/tasks/rspec.rake +2 -6
  130. metadata +204 -135
  131. data/lib/1.8/gherkin_lexer_ar.so +0 -0
  132. data/lib/1.8/gherkin_lexer_bg.so +0 -0
  133. data/lib/1.8/gherkin_lexer_bm.so +0 -0
  134. data/lib/1.8/gherkin_lexer_ca.so +0 -0
  135. data/lib/1.8/gherkin_lexer_cs.so +0 -0
  136. data/lib/1.8/gherkin_lexer_cy_gb.so +0 -0
  137. data/lib/1.8/gherkin_lexer_da.so +0 -0
  138. data/lib/1.8/gherkin_lexer_de.so +0 -0
  139. data/lib/1.8/gherkin_lexer_el.so +0 -0
  140. data/lib/1.8/gherkin_lexer_en.so +0 -0
  141. data/lib/1.8/gherkin_lexer_en_au.so +0 -0
  142. data/lib/1.8/gherkin_lexer_en_lol.so +0 -0
  143. data/lib/1.8/gherkin_lexer_en_old.so +0 -0
  144. data/lib/1.8/gherkin_lexer_en_pirate.so +0 -0
  145. data/lib/1.8/gherkin_lexer_en_scouse.so +0 -0
  146. data/lib/1.8/gherkin_lexer_en_tx.so +0 -0
  147. data/lib/1.8/gherkin_lexer_eo.so +0 -0
  148. data/lib/1.8/gherkin_lexer_es.so +0 -0
  149. data/lib/1.8/gherkin_lexer_et.so +0 -0
  150. data/lib/1.8/gherkin_lexer_fa.so +0 -0
  151. data/lib/1.8/gherkin_lexer_fi.so +0 -0
  152. data/lib/1.8/gherkin_lexer_fr.so +0 -0
  153. data/lib/1.8/gherkin_lexer_gl.so +0 -0
  154. data/lib/1.8/gherkin_lexer_he.so +0 -0
  155. data/lib/1.8/gherkin_lexer_hi.so +0 -0
  156. data/lib/1.8/gherkin_lexer_hr.so +0 -0
  157. data/lib/1.8/gherkin_lexer_hu.so +0 -0
  158. data/lib/1.8/gherkin_lexer_id.so +0 -0
  159. data/lib/1.8/gherkin_lexer_is.so +0 -0
  160. data/lib/1.8/gherkin_lexer_it.so +0 -0
  161. data/lib/1.8/gherkin_lexer_ja.so +0 -0
  162. data/lib/1.8/gherkin_lexer_ko.so +0 -0
  163. data/lib/1.8/gherkin_lexer_lt.so +0 -0
  164. data/lib/1.8/gherkin_lexer_lu.so +0 -0
  165. data/lib/1.8/gherkin_lexer_lv.so +0 -0
  166. data/lib/1.8/gherkin_lexer_nl.so +0 -0
  167. data/lib/1.8/gherkin_lexer_no.so +0 -0
  168. data/lib/1.8/gherkin_lexer_pl.so +0 -0
  169. data/lib/1.8/gherkin_lexer_pt.so +0 -0
  170. data/lib/1.8/gherkin_lexer_ro.so +0 -0
  171. data/lib/1.8/gherkin_lexer_ru.so +0 -0
  172. data/lib/1.8/gherkin_lexer_sk.so +0 -0
  173. data/lib/1.8/gherkin_lexer_sr_cyrl.so +0 -0
  174. data/lib/1.8/gherkin_lexer_sr_latn.so +0 -0
  175. data/lib/1.8/gherkin_lexer_sv.so +0 -0
  176. data/lib/1.8/gherkin_lexer_tl.so +0 -0
  177. data/lib/1.8/gherkin_lexer_tr.so +0 -0
  178. data/lib/1.8/gherkin_lexer_tt.so +0 -0
  179. data/lib/1.8/gherkin_lexer_uk.so +0 -0
  180. data/lib/1.8/gherkin_lexer_uz.so +0 -0
  181. data/lib/1.8/gherkin_lexer_vi.so +0 -0
  182. data/lib/1.8/gherkin_lexer_zh_cn.so +0 -0
  183. data/lib/1.8/gherkin_lexer_zh_tw.so +0 -0
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  # Repeat these step for cucumber (swap `cucumber` with `gherkin`).
16
16
  #
17
17
  # When both are building OK, do a `bundle exec rake install` in both cucumber and gherkin projects, revert the changes in the first 2 steps
18
- # and release both projects. Do this for both ruby 1.8.7, ruby 1.9.3 and jruby.
18
+ # and release both projects. Do this for both ruby 1.9.3, ruby 2.0.0 and jruby.
19
19
  #
20
20
  s.version = Gherkin::VERSION
21
21
  s.authors = ["Mike Sassak", "Gregory Hnatiuk", "Aslak Hellesøy"]
@@ -23,6 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.summary = "#{s.name}-#{s.version}"
24
24
  s.email = "cukes@googlegroups.com"
25
25
  s.homepage = "http://github.com/cucumber/gherkin"
26
+ s.license = 'MIT'
26
27
 
27
28
  s.files = `git ls-files`.split("\n")
28
29
  s.test_files = `git ls-files -- {spec,features}/*`.split("\n")
@@ -51,29 +52,29 @@ Gem::Specification.new do |s|
51
52
  when /dotnet/
52
53
  s.files += Dir['lib/*.dll']
53
54
  else # MRI or Rubinius
54
- s.files += Dir['lib/gherkin/rb_lexer/*.rb']
55
+ s.files += Dir['lib/gherkin/lexer/*.rb']
55
56
  s.files += Dir['ext/**/*.c']
56
57
  s.extensions = Dir['ext/**/extconf.rb']
57
- s.add_development_dependency('rake-compiler', '>= 0.8.2')
58
+ s.add_development_dependency('rake-compiler', '= 0.8.2')
58
59
  end
59
60
  s.files -= Dir['**/.gitignore']
60
61
 
61
62
  s.add_runtime_dependency('multi_json', '~> 1.3')
62
63
 
63
- s.add_development_dependency('cucumber', '>= 1.2.0')
64
- s.add_development_dependency('rake', '>= 10.0.3')
65
- s.add_development_dependency('bundler', '>= 1.2.3') # Make sure it's in sync with /.travis.yml
66
- s.add_development_dependency('rspec', '~> 2.13.0')
64
+ s.add_development_dependency('cucumber', '>= 1.3.4')
65
+ s.add_development_dependency('rake', '>= 10.1.0')
66
+ s.add_development_dependency('bundler', '>= 1.3.5') # Make sure it's in sync with /.travis.yml
67
+ s.add_development_dependency('rspec', '~> 2.14.1')
67
68
  s.add_development_dependency('rubyzip', '>= 0.9.9')
68
69
 
69
70
  unless ENV['RUBY_CC_VERSION'] || Gherkin::JRUBY
70
71
  s.add_development_dependency('therubyracer', '>= 0.11.4') if ENV['GHERKIN_JS']
71
72
  # For Documentation:
72
- s.add_development_dependency('yard', '>= 0.8.3')
73
- s.add_development_dependency('rdiscount', '>= 1.6.8')
73
+ s.add_development_dependency('yard', '>= 0.8.6.2')
74
+ s.add_development_dependency('rdiscount', '>= 2.1.6')
74
75
  end
75
76
 
76
77
  # Only needed by Cucumber. Remove when Cucumber no longer needs those.
77
- s.add_development_dependency('term-ansicolor', '>= 1.0.7')
78
- s.add_development_dependency('builder', '>= 3.1.4')
78
+ s.add_development_dependency('term-ansicolor', '>= 1.2.2')
79
+ s.add_development_dependency('builder', '>= 3.2.2')
79
80
  end
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -130,7 +130,7 @@ module Gherkin
130
130
  end
131
131
 
132
132
  @examples_events.clear
133
- @examples_tags.clear
133
+ @examples_tags = []
134
134
  @examples_name = nil
135
135
  @examples_range = nil
136
136
  end
@@ -32,14 +32,14 @@
32
32
  "native": "Bahasa Melayu",
33
33
  "feature": "Fungsi",
34
34
  "background": "Latar Belakang",
35
- "scenario": "Senario",
36
- "scenario_outline": "Menggariskan Senario ",
37
- "examples": "Contoh ",
38
- "given": "*|Bagi",
35
+ "scenario": "Senario|Situai|Keadaan",
36
+ "scenario_outline": "Template Senario|Template Situai|Template Keadaan|Menggariskan Senario",
37
+ "examples": "Contoh",
38
+ "given": "*|Diberi|Bagi",
39
39
  "when": "*|Apabila",
40
- "then": "*|Kemudian",
40
+ "then": "*|Maka|Kemudian",
41
41
  "and": "*|Dan",
42
- "but": "*|Tetapi"
42
+ "but": "*|Tetapi|Tapi"
43
43
  },
44
44
  "bg": {
45
45
  "name": "Bulgarian",
@@ -119,7 +119,7 @@
119
119
  "scenario": "Szenario",
120
120
  "scenario_outline": "Szenariogrundriss",
121
121
  "examples": "Beispiele",
122
- "given": "*|Angenommen|Gegeben sei",
122
+ "given": "*|Angenommen|Gegeben sei|Gegeben seien",
123
123
  "when": "*|Wenn",
124
124
  "then": "*|Dann",
125
125
  "and": "*|Und",
@@ -344,10 +344,10 @@
344
344
  "scenario_outline": "परिदृश्य रूपरेखा",
345
345
  "examples": "उदाहरण",
346
346
  "given": "*|अगर|यदि|चूंकि",
347
- "when": "*|जब",
348
- "then": "*|तब",
347
+ "when": "*|जब|कदा",
348
+ "then": "*|तब|तदा",
349
349
  "and": "*|और|तथा",
350
- "but": "*|पर"
350
+ "but": "*|पर|परन्तु|किन्तु"
351
351
  },
352
352
  "hr": {
353
353
  "name": "Croatian",
@@ -517,6 +517,20 @@
517
517
  "and": "*|Og",
518
518
  "but": "*|Men"
519
519
  },
520
+ "pa": {
521
+ "name": "Panjabi",
522
+ "native": "ਪੰਜਾਬੀ",
523
+ "feature": "ਖਾਸੀਅਤ|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ",
524
+ "background": "ਪਿਛੋਕੜ",
525
+ "scenario": "ਪਟਕਥਾ",
526
+ "scenario_outline": "ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ",
527
+ "examples": "ਉਦਾਹਰਨਾਂ",
528
+ "given": "*|ਜੇਕਰ|ਜਿਵੇਂ ਕਿ",
529
+ "when": "*|ਜਦੋਂ",
530
+ "then": "*|ਤਦ",
531
+ "and": "*|ਅਤੇ",
532
+ "but": "*|ਪਰ"
533
+ },
520
534
  "pl": {
521
535
  "name": "Polish",
522
536
  "native": "polski",
@@ -643,6 +657,20 @@
643
657
  "and": "*|మరియు",
644
658
  "but": "*|కాని"
645
659
  },
660
+ "th": {
661
+ "name": "Thai",
662
+ "native": "ไทย",
663
+ "feature": "โครงหลัก|ความต้องการทางธุรกิจ|ความสามารถ",
664
+ "background": "แนวคิด",
665
+ "scenario": "เหตุการณ์",
666
+ "scenario_outline": "สรุปเหตุการณ์|โครงสร้างของเหตุการณ์",
667
+ "examples": "ชุดของตัวอย่าง|ชุดของเหตุการณ์",
668
+ "given": "*|กำหนดให้",
669
+ "when": "*|เมื่อ",
670
+ "then": "*|ดังนั้น",
671
+ "and": "*|และ",
672
+ "but": "*|แต่"
673
+ },
646
674
  "tr": {
647
675
  "name": "Turkish",
648
676
  "native": "Türkçe",
@@ -94,7 +94,7 @@ module Gherkin
94
94
  end
95
95
 
96
96
  def lexer(listener, force_ruby=false)
97
- if force_ruby
97
+ if force_ruby || ENV['GHERKIN_RUBY'] =~ /true/i
98
98
  rb(listener)
99
99
  else
100
100
  begin
@@ -3,10 +3,10 @@
3
3
  module Gherkin
4
4
  unless defined?(Gherkin::VERSION)
5
5
  # See the comment in gherkin.gemspec if you bump the MINOR version (MAJOR.MINOR.PATCH).
6
- VERSION = '2.12.0'
6
+ VERSION = '2.12.1'
7
7
  JRUBY = defined?(JRUBY_VERSION)
8
8
 
9
- if !JRUBY && !(RUBY_VERSION =~ /^(1\.8\.7|1\.9\.3|2\.0)/)
9
+ if !JRUBY && !(RUBY_VERSION =~ /^(1\.9\.3|2\.0)/)
10
10
  warn("WARNING: Unsupported Ruby version - #{RUBY_VERSION}")
11
11
  end
12
12
  end
@@ -21,6 +21,7 @@ module Gherkin
21
21
  data = data.to_java_bytes
22
22
  end
23
23
  f.embedding("mime-type", data)
24
+ f.write("step output")
24
25
 
25
26
  f.result(Model::Result.new(:passed, 1, nil))
26
27
 
@@ -64,6 +65,9 @@ module Gherkin
64
65
  "data": "YWJj"
65
66
  }
66
67
  ],
68
+ "output": [
69
+ "step output"
70
+ ],
67
71
  "result": {
68
72
  "status": "passed",
69
73
  "duration": 1
@@ -12,10 +12,10 @@ module Gherkin
12
12
  describe PrettyFormatter do
13
13
  include AnsiEscapes
14
14
 
15
- def assert_io(s)
15
+ def assert_io_include(s)
16
16
  actual = @io.string
17
17
  actual.gsub!(/\e\[m/, "\e[0m") # JANSI resets without the 0.
18
- actual.should == s
18
+ actual.should include(s)
19
19
  end
20
20
 
21
21
  def assert_pretty(input, expected_output=input)
@@ -48,14 +48,16 @@ module Gherkin
48
48
  @f.match(Model::Match.new([], "features/step_definitions/bar.rb:96"))
49
49
  @f.result(Model::Result.new('passed', 33, nil))
50
50
 
51
- assert_io(%{Feature: Hello
51
+ @f.eof()
52
+
53
+ assert_io_include(%{Feature: Hello
52
54
  World
53
55
 
54
56
  Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
55
- #{executing}Given #{reset}#{executing}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
56
- #{up(1)} #{passed}Given #{reset}#{passed}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
57
- #{executing}When #{reset}#{executing}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
58
- #{up(1)} #{passed}When #{reset}#{passed}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
57
+ })
58
+ assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
59
+ })
60
+ assert_io_include(%{ #{passed}When #{reset}#{passed}foo#{reset} #{comments}# features/step_definitions/bar.rb:96#{reset}
59
61
  })
60
62
  end
61
63
 
@@ -71,12 +73,14 @@ module Gherkin
71
73
  @f.match(match)
72
74
  @f.result(result)
73
75
 
74
- assert_io(%{Feature: Hello
76
+ @f.eof()
77
+
78
+ assert_io_include(%{Feature: Hello
75
79
  World
76
80
 
77
81
  Scenario: The scenario #{comments}# features/foo.feature:4#{reset}
78
- #{executing}Given #{reset}#{executing}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
79
- #{up(1)} #{passed}Given #{reset}#{passed}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
82
+ })
83
+ assert_io_include(%{ #{passed}Given #{reset}#{passed}some stuff that is longer#{reset} #{comments}# features/step_definitions/bar.rb:56#{reset}
80
84
  })
81
85
  end
82
86
 
@@ -86,12 +90,13 @@ module Gherkin
86
90
  @f.step(Model::Step.new([], "Given ", "I have 999 cukes in my belly", 3, nil, nil))
87
91
  @f.match(Model::Match.new([Gherkin::Formatter::Argument.new(7, '999')], nil))
88
92
  @f.result(Model::Result.new('passed', 6, nil))
93
+ @f.eof()
89
94
 
90
- assert_io(
95
+ assert_io_include(
91
96
  "\n" +
92
- " Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n" +
93
- " #{executing}Given #{reset}#{executing}I have #{reset}#{executing_arg}999#{reset}#{executing} cukes in my belly#{reset}\n" +
94
- "#{up(1)} #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
97
+ " Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n")
98
+ assert_io_include(
99
+ " #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
95
100
  )
96
101
  end
97
102
 
@@ -105,12 +110,14 @@ module Gherkin
105
110
  Gherkin::Formatter::Argument.new(7, '999')
106
111
  ], nil))
107
112
  @f.result(Model::Result.new('passed', 6, nil))
113
+ @f.eof()
108
114
 
109
- assert_io(
115
+ assert_io_include(
110
116
  "\n" +
111
- " Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n" +
112
- " #{executing}Given #{reset}#{executing}I have #{reset}#{executing_arg}999#{reset}#{executing} cukes in my belly#{reset}\n" +
113
- "#{up(1)} #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
117
+ " Scenario: Lots of cukes \e[90m# foo.feature:3\e[0m\n"
118
+ )
119
+ assert_io_include(
120
+ " #{passed}Given #{reset}#{passed}I have #{reset}#{passed_arg}999#{reset}#{passed} cukes in my belly#{reset}\n"
114
121
  )
115
122
  end
116
123