1 require File.dirname(__FILE__) + '/story_helper'
5 describe GivenScenario do
6 it 'should execute a scenario from the current story in its world' do
11 instance = World.create(MyWorld)
12 scenario = ScenarioBuilder.new.to_scenario do
15 Runner::StoryRunner.should_receive(:scenario_from_current_story).with('scenario name').and_return(scenario)
17 step = GivenScenario.new 'scenario name'
20 step.perform(instance, nil)
23 instance.scenario_ran.should be_true