Sha256: 78a31dfec5169548fb7251bd6e012ca27277c8bdd74e4703d7b2d9ae15ef7972

Contents?: true

Size: 603 Bytes

Versions: 52

Compression:

Stored size: 603 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::NaturalLanguage.get(nil, 'en'))
        s2.stub!(:language).and_return(Parser::NaturalLanguage.get(nil, '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

52 entries across 52 versions & 9 rubygems

Version Path
aslakhellesoy-cucumber-0.3.100 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.101.2 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.101 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.102.1 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.102.2 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.102 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.103 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.104 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.96 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.97 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.98 spec/cucumber/ast/step_collection_spec.rb
aslakhellesoy-cucumber-0.3.99 spec/cucumber/ast/step_collection_spec.rb
dwaite-cucumber-0.3.101 spec/cucumber/ast/step_collection_spec.rb
engineyard-cucumber-0.3.101 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.100 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.102 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.103 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.96 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.97 spec/cucumber/ast/step_collection_spec.rb
kosmas58-cucumber-0.3.98 spec/cucumber/ast/step_collection_spec.rb