Class: Spec::Story::Scenario

Inherits:
Object
  • Object
show all
Defined in:
lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(story, name, &body) ⇒ Scenario

Returns a new instance of Scenario.



7
8
9
10
11
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 7

def initialize(story, name, &body)
  @story = story
  @name = name
  @body = body
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



5
6
7
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5

def body
  @body
end

#nameObject

Returns the value of attribute name.



5
6
7
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5

def name
  @name
end

#storyObject

Returns the value of attribute story.



5
6
7
# File 'lib/gems/rspec-1.1.12/lib/spec/story/scenario.rb', line 5

def story
  @story
end