]> git.openstreetmap.org Git - rails.git/blob - vendor/gems/rspec-1.1.2/lib/spec/story/runner/scenario_collector.rb
Show whether a trace is public or private in the trace list, so that a user can easil...
[rails.git] / vendor / gems / rspec-1.1.2 / lib / spec / story / runner / scenario_collector.rb
1 module 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
18 end