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 +0 -1
- data/Manifest.txt +2 -0
- data/lib/cucumber/ast/table.rb +1 -1
- data/lib/cucumber/formatter/pretty.rb +1 -1
- data/lib/cucumber/version.rb +1 -1
- data/spec/cucumber/parser/feature_parser_spec.rb +17 -0
- metadata +2 -2
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
|
data/lib/cucumber/ast/table.rb
CHANGED
@@ -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
|
|
data/lib/cucumber/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2009-02-02 00:00:00 -08:00
|
13
13
|
default_executable: cucumber
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|