Sha256: ced7f2bdbc87417f391b3fac25bb354b7ce5adae7c0a008c1d13322a9dc7405a
Contents?: true
Size: 583 Bytes
Versions: 30
Compression:
Stored size: 583 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber module Ast describe StepCollection do it "should convert And to Given in snippets" do s1 = Step.new(1, 'Given', 'cukes') s2 = Step.new(2, 'And', 'turnips') s1.stub!(:language).and_return(Parser::I18n::Language['en']) s2.stub!(:language).and_return(Parser::I18n::Language['en']) c = StepCollection.new([s1, s2]) actual_keywords = c.step_invocations.map{|i| i.actual_keyword} actual_keywords.should == %w{Given Given} end end end end
Version data entries
30 entries across 30 versions & 7 rubygems