spec/cucumber/parser/feature_parser_spec.rb in cucumber-0.3.1 vs spec/cucumber/parser/feature_parser_spec.rb in cucumber-0.3.2

- old
+ new

@@ -302,9 +302,21 @@ [:row, 7, [:cell, "x"]], [:row, 8, [:cell, "5"]]]]]] end + + it "should allow Examples to have multiline names" do + pending('https://rspec.lighthouseapp.com/projects/16211/tickets/307-031-step-mother-parses-scenario-titles') do + parse(%{Feature: Hi +Scenario: When I have when in scenario +Given I am a step +}).to_sexp.should == + [:feature, nil, "Feature: Hi", + [:scenario, 2, "Scenario:", "When I have when in scenario", + [:step, 3, "Given", "I am a step"]]] + end + end end describe "Syntax" do it "should parse empty_feature" do parse_file("empty_feature.feature")