aslakhellesoy-cucumber 0.1.99.18 → 0.1.99.19

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -58,7 +58,6 @@ pure Ruby users have been enjoying for a while.
58
58
 
59
59
  == TODO Before 0.2 release
60
60
  * Make sure all features and specs pass on Windows, JRuby and Ruby 1.9
61
- * Verify that custom formatters work - write a feature for it
62
61
  * Implement at least a basic HTML formatter
63
62
  * Run a single cucumber feature from rake "rake features FEATURE=/path/to/feature:line"
64
63
  * Wiki page about running subsets
data/Manifest.txt CHANGED
@@ -132,6 +132,7 @@ examples/self_test/features/outline_sample.feature
132
132
  examples/self_test/features/sample.feature
133
133
  examples/self_test/features/step_definitions/sample_steps.rb
134
134
  examples/self_test/features/support/env.rb
135
+ examples/self_test/features/support/tag_count_formatter.rb
135
136
  examples/test_unit/Rakefile
136
137
  examples/test_unit/features/step_definitions/test_unit_steps.rb
137
138
  examples/test_unit/features/test_unit.feature
@@ -156,6 +157,7 @@ examples/watir/features/support/env.rb
156
157
  features/background.feature
157
158
  features/cucumber_cli.feature
158
159
  features/cucumber_cli_outlines.feature
160
+ features/custom_formatter.feature
159
161
  features/report_called_undefined_steps.feature
160
162
  features/step_definitions/cucumber_steps.rb
161
163
  features/step_definitions/extra_steps.rb
@@ -183,7 +183,7 @@ module Cucumber
183
183
  end
184
184
 
185
185
  def width
186
- map{|cell| cell.value ? cell.value.jlength : 0}.max
186
+ map{|cell| cell.value ? cell.value.to_s.jlength : 0}.max
187
187
  end
188
188
 
189
189
  def each(&proc)
@@ -151,7 +151,7 @@ module Cucumber
151
151
  end
152
152
 
153
153
  def visit_table_cell_value(value, width, status)
154
- @io.print(' ' + format_string((value || '').ljust(width), status) + " #{@delim}")
154
+ @io.print(' ' + format_string((value.to_s || '').ljust(width), status) + " #{@delim}")
155
155
  @io.flush
156
156
  end
157
157
 
@@ -3,7 +3,7 @@ module Cucumber #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
5
  TINY = 99
6
- PATCH = 18 # Set to nil for official release
6
+ PATCH = 19 # Set to nil for official release
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
9
9
  end
@@ -36,6 +36,23 @@ Feature: hi
36
36
  [:feature, "Feature: hi\n",
37
37
  [:comment, "# My comment\n"]]
38
38
  end
39
+
40
+ it "should parse a comment within a scenario" do
41
+ pending "Store comment in node and output it in pretty formatter"
42
+ parse(%{Feature: Hi
43
+ Scenario: Hello
44
+ Given foo
45
+ # When bar
46
+ Then baz
47
+ }).to_sexp.should ==
48
+ [:feature, "Feature: Hi",
49
+ [:scenario, 2, "Scenario:", "Hello",
50
+ [:step, 3, "Given", "foo"],
51
+ [:comment, "# When bar\n"],
52
+ [:step, 5, "Then", "baz"]
53
+ ]
54
+ ]
55
+ end
39
56
 
40
57
  it "should parse a file with only a multiline comment" do
41
58
  parse(%{# Hello
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aslakhellesoy-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.99.18
4
+ version: 0.1.99.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Aslak Helles\xC3\xB8y"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-31 00:00:00 -08:00
12
+ date: 2009-02-02 00:00:00 -08:00
13
13
  default_executable: cucumber
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency