spec/cucumber/ast/feature_factory.rb in casecumber-1.0.2.1 vs spec/cucumber/ast/feature_factory.rb in casecumber-1.2.1.cb2
- old
+ new
@@ -1,7 +1,8 @@
require 'cucumber/ast'
require 'cucumber/step_mother'
+require 'gherkin/formatter/model'
module Cucumber
module Ast
module FeatureFactory
class MyWorld
@@ -22,28 +23,28 @@
table = Ast::Table.new([
%w{1 22 333},
%w{4444 55555 666666}
])
- doc_string = Ast::DocString.new(%{\n I like\nCucumber sandwich\n})
+ doc_string = Ast::DocString.new(%{\n I like\nCucumber sandwich\n}, '')
background = Ast::Background.new(Ast::Comment.new(""), 2, "Background:", "", "",
[
Step.new(3, "Given", "a passing step")
]
)
f = Ast::Feature.new(
background,
Ast::Comment.new("# My feature comment\n"),
- Ast::Tags.new(6, ['one', 'two']),
+ Ast::Tags.new(6, [Gherkin::Formatter::Model::Tag.new('one', 6), Gherkin::Formatter::Model::Tag.new('two', 6)]),
"Feature",
"Pretty printing",
"",
[Ast::Scenario.new(
background,
Ast::Comment.new(" # My scenario comment \n# On two lines \n"),
- Ast::Tags.new(8, ['three', 'four']),
+ Ast::Tags.new(8, [Gherkin::Formatter::Model::Tag.new('three', 8), Gherkin::Formatter::Model::Tag.new('four', 8)]),
9,
"Scenario:", "A Scenario", "",
[
Step.new(10, "Given", "a passing step with an inline arg:", table),
Step.new(11, "Given", "a happy step with an inline arg:", doc_string),
\ No newline at end of file