spec/cucumber/ast/feature_factory.rb in aslakhellesoy-cucumber-0.1.99.23 vs spec/cucumber/ast/feature_factory.rb in aslakhellesoy-cucumber-0.1.100.1

- old
+ new

@@ -27,15 +27,24 @@ ]) py_string = Ast::PyString.new(21, 22, %{ I like Cucumber sandwich }, 10) + + 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']), "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", [ @@ -44,10 +53,10 @@ Step.new(12, "Given", "a failing step") ] )] ) f.file = 'features/pretty_printing.feature' - f.features = Features.new(Filter.new({:tags => []})) + f.features = Features.new f end end end end \ No newline at end of file