Class: Spec::Story::GivenScenario
- Defined in:
- lib/gems/rspec-1.1.12/lib/spec/story/given_scenario.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ GivenScenario
constructor
A new instance of GivenScenario.
- #perform(instance, ignore_name) ⇒ Object
Constructor Details
#initialize(name) ⇒ GivenScenario
Returns a new instance of GivenScenario.
4 5 6 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/given_scenario.rb', line 4 def initialize(name) @name = name end |
Instance Method Details
#perform(instance, ignore_name) ⇒ Object
8 9 10 11 |
# File 'lib/gems/rspec-1.1.12/lib/spec/story/given_scenario.rb', line 8 def perform(instance, ignore_name) scenario = Runner::StoryRunner.scenario_from_current_story(@name) Runner::ScenarioRunner.new.run(scenario, instance) end |