changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/lib/spec/story/runner/scenario_collector.rb

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1module Spec
2 module Story
3 module Runner
4 class ScenarioCollector
5 attr_accessor :scenarios
6
7 def initialize(story)
8 @story = story
9 @scenarios = []
10 end
11
12 def Scenario(name, &body)
13 @scenarios << Scenario.new(@story, name, &body)
14 end
15 end
16 end
17 end
18end