spec/cucumber/ast/feature_factory.rb in cucumber-0.8.6 vs spec/cucumber/ast/feature_factory.rb in cucumber-0.8.7
- old
+ new
@@ -22,13 +22,13 @@
table = Ast::Table.new([
%w{1 22 333},
%w{4444 55555 666666}
])
- doc_string = Ast::DocString.new(%{\n I like\nCucumber sandwich\n})
+ py_string = Ast::PyString.new(%{\n I like\nCucumber sandwich\n})
- background = Ast::Background.new(Ast::Comment.new(""), 2, "Background:", "", "",
+ background = Ast::Background.new(Ast::Comment.new(""), 2, "Background:", "",
[
Step.new(3, "Given", "a passing step")
]
)
@@ -36,19 +36,18 @@
background,
Ast::Comment.new("# My feature comment\n"),
Ast::Tags.new(6, ['one', 'two']),
"Feature",
"Pretty printing",
- "",
[Ast::Scenario.new(
background,
Ast::Comment.new(" # My scenario comment \n# On two lines \n"),
Ast::Tags.new(8, ['three', 'four']),
9,
- "Scenario:", "A Scenario", "",
+ "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),
+ Step.new(11, "Given", "a happy step with an inline arg:", py_string),
Step.new(12, "Given", "a failing step")
]
)]
)
f.file = 'features/pretty_printing.feature'
\ No newline at end of file