Flowdock
method

to_proc

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Story::Runner::StoryMediator::Story

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

to_proc() public

No documentation

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File lib/spec/story/runner/story_mediator.rb, line 71
          def to_proc
            title = @title
            narrative = @narrative
            scenarios = @scenarios.collect { |scenario| scenario.to_proc }
            options = @options.merge(:steps_for => @step_group)
            lambda do
              Story title, narrative, options do
                scenarios.each { |scenario| instance_eval(&scenario) }
              end
            end
          end
Register or log in to add new notes.