spec/cucumber/formatter/junit_spec.rb in cucumber-0.4.0.rc1 vs spec/cucumber/formatter/junit_spec.rb in cucumber-0.4.0

- old
+ new

@@ -65,9 +65,32 @@ it { @doc.to_s.should =~ /Whisky/ } it { @doc.to_s.should =~ /Big Mac/ } it { @doc.to_s.should_not =~ /Things/ } it { @doc.to_s.should_not =~ /Good|Evil/ } end - end + + describe "with a regular data table scenario" do + define_steps do + Given(/the following items on a shortlist/) { |table| } + When(/I go.*/) { } + Then(/I should have visited at least/) { |table| } + end + + define_feature <<-FEATURE + Feature: Shortlist + Scenario: Procure items + Given the following items on a shortlist: + | item | + | milk | + | cookies | + When I get some.. + Then I'll eat 'em + + FEATURE + # these type of tables shouldn't crash (or generate test cases) + it { @doc.to_s.should_not =~ /milk/ } + it { @doc.to_s.should_not =~ /cookies/ } + end + end end end \ No newline at end of file