Class Spec::Story::GivenScenario

  1. lib/spec/rails/story_adapter.rb
Parent: Object

Methods

public instance

  1. perform

Public instance methods

perform (instance, name = nil)
[show source]
# File lib/spec/rails/story_adapter.rb, line 73
  def perform(instance, name = nil)
    scenario = Spec::Story::Runner::StoryRunner.scenario_from_current_story @name
    runner = Spec::Story::Runner::ScenarioRunner.new
    runner.instance_variable_set(:@listeners,[])
    runner.run(scenario, instance)
  end