spec/cucumber/ast/step_collection_spec.rb in kosmas58-cucumber-0.2.0 vs spec/cucumber/ast/step_collection_spec.rb in kosmas58-cucumber-0.2.0.1

- old
+ new

@@ -1,8 +1,16 @@ require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber module Ast describe StepCollection do + it "should convert And to Given in snippets" do + c = StepCollection.new([ + Step.new(1, 'Given', 'cukes'), + Step.new(2, 'And', 'turnips') + ]) + actual_keywords = c.step_invocations.map{|i| i.actual_keyword} + actual_keywords.should == %w{Given Given} + end end end end