method
run_given_scenario_with_suspended_listeners
RSpec latest stable (1.3.1)
-
0 notes -
Class: Spec::Story::World
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
run_given_scenario_with_suspended_listeners(world, type, name, scenario)
public
Hide source
# File lib/spec/story/world.rb, line 43 def self.run_given_scenario_with_suspended_listeners(world, type, name, scenario) current_listeners = Array.new(listeners) begin listeners.each { |l| l.found_scenario(type, name) } @listeners.clear scenario.perform(world, name) unless dry_run ensure @listeners.replace(current_listeners) end end