repo.or.cz
/
monkeycharger.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Upgraded Rails and RSpec
[monkeycharger.git]
/
vendor
/
plugins
/
rspec
/
rspec
/
lib
/
spec
/
story
/
runner
/
scenario_collector.rb
blob
78339fd22828e4b4705240fe845a4732f181e57e
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