Sha256: 4ee4ef008e4cb1616ce57c245f43259b5e10c29753b055e4b905cc56410d5a04
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
require File.dirname(__FILE__) + '/../../spec_helper' module Cucumber module Tree describe Scenario do xit "should reuse steps in GivenScenario" do given_scenario = GivenScenario.new(scenario_2, "First", 99) scenario_2.create_step(given_scenario) scenario_2.create_step(step_a) scenario_2.steps.should == [step_1, step_2, step_a] end it "should have padding_length 2 when alone" do scenario = Scenario.new(nil, 'test', 1) scenario.padding_length.should == 2 end it "should include indent when padding to step" do scenario = Scenario.new(nil, '', 1) scenario.create_step('Given', 'a long step', 1) #Scenario: *********** # Given a long step scenario.padding_length.should == 9 + 2 #Allow for indent end it "should ignore step padding if scenario is longer than all steps" do scenario = Scenario.new(nil, 'Very long scenario and then some', 1) scenario.create_step('Given', 'test', 1) scenario.padding_length.should == 2 end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
elight-cucumber-0.1.9 | spec/cucumber/tree/scenario_spec.rb |
cucumber-0.1.8 | spec/cucumber/tree/scenario_spec.rb |