forked from RiverGlide/CukeSalad
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initializing the actor: Roles with role_preparation initialize themse…
…lves
- Loading branch information
1 parent
8bd5f5e
commit 0de053a
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: Prepare the actor for the role | ||
As a Step Free Cuker | ||
You want the role to initialize some things | ||
So that you can define the things that the role always does at the start | ||
|
||
Background: | ||
Given you are a Step Free Cuker | ||
And you were able to create a new Cuke Salad project | ||
|
||
Scenario: Initialization | ||
Given you were able to create a file, at 'features/roles/role_with_prep.rb' containing | ||
""" | ||
module RoleWithPrep | ||
def role_preparation | ||
take_note_of :something, 'important' | ||
end | ||
end | ||
""" | ||
And you were able to create a task, called 'recall something' containing | ||
""" | ||
in_order_to 'recall something' do | ||
recall :something | ||
end | ||
""" | ||
When you attempt to run a scenario, containing | ||
""" | ||
Given I am a Role With Prep | ||
Then I should recall something 'important' | ||
""" | ||
Then you should see it has 'passed' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters