Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Initializing the actor: The example is more reflective of how it woul…

…d be used
  • Loading branch information...
commit 3b2d980c1db3d7c3895d5a2a6d4f5844a32f4af6 1 parent 196d395
@antonymarcano antonymarcano authored
Showing with 13 additions and 5 deletions.
  1. +13 −5 features/prepare_the_actor_for_the_role.feature
18 features/prepare_the_actor_for_the_role.feature
@@ -12,20 +12,28 @@ Feature: Prepare the actor for the role
module RoleWithPrep
def role_preparation
- take_note_of :something, 'important'
+ do_something_important
+ end
+ def do_something_important
+ @something = 'something important was done'
+ end
+ def see_what_was_done
+ @something
- And you were able to create a task, called 'recall something' containing
+ And you were able to create a task, called 'see that' containing
- in_order_to 'recall something' do
- recall :something
+ in_order_to 'see that' do
+ see_what_was_done
When you attempt to run a scenario, containing
Given I am a Role With Prep
- Then I should recall something 'important'
+ Then I should see that 'something important was done'
Then you should see it has 'passed'

0 comments on commit 3b2d980

Please sign in to comment.
Something went wrong with that request. Please try again.