Sha256: d24d0fdc21f9a91a97e80ae2c62e7dd3efed47df2dd0e7f5a3b8b37f71343a17

Contents?: true

Size: 1.05 KB

Versions: 17

Compression:

Stored size: 1.05 KB

Contents

require File.dirname(__FILE__) + '/../../spec_helper'

module Cucumber
  module Tree
    describe RowStepOutline do
      
      def mock_step(stubs = {})
        mock("step", {:extra_args => []}.merge(stubs))
      end
      
      
      it "should be a outline" do
        outline_row = RowStepOutline.new(mock("scenario"), mock_step, 'outline', [], 1)
        
        outline_row.should be_a_outline
      end

      it "should be a row step" do
        outline_row = RowStepOutline.new(mock("scenario"), mock_step, 'outline', [], 1)
        
        outline_row.should be_a_row
      end

      it "should have visible args" do
        outline_row = RowStepOutline.new(mock("scenario"), mock_step, 'outline', ["tiger", "night"], 1)

        outline_row.visible_args.should == ["tiger", "night"]
      end
      
      it "should have extra args" do
        outline_row = RowStepOutline.new(mock("scenario"), mock_step(:extra_args => ["extra", "arrrgs"]), 'outline', [], 1)

        outline_row.extra_args.should == ["extra", "arrrgs"]
      end
      
    end
  end
end

Version data entries

17 entries across 17 versions & 3 rubygems

Version Path
aslakhellesoy-cucumber-0.1.13.2 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.13.3 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.13 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.14.1 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.14.2 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.15 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.16.1 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.16.2 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.16.3 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.16.4 spec/cucumber/tree/row_step_outline_spec.rb
aslakhellesoy-cucumber-0.1.16 spec/cucumber/tree/row_step_outline_spec.rb
kosmas58-cucumber-0.1.16.5 spec/cucumber/tree/row_step_outline_spec.rb
kosmas58-cucumber-0.1.16.6 spec/cucumber/tree/row_step_outline_spec.rb
cucumber-0.1.13 spec/cucumber/tree/row_step_outline_spec.rb
cucumber-0.1.14 spec/cucumber/tree/row_step_outline_spec.rb
cucumber-0.1.16 spec/cucumber/tree/row_step_outline_spec.rb
cucumber-0.1.15 spec/cucumber/tree/row_step_outline_spec.rb