Skip to content

Commit

Permalink
Fix hook documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
josepjaume committed Oct 26, 2011
1 parent 8e5c02b commit 83c0d70
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ after any feature, scenario or step execution.

So, for example, you could:

Spinach.before_scenario do |data|
Spinach.hooks.before_scenario do |data|
clear_database
end

Spinach.on_successful_step do |step_data, location|
Spinach.hooks.on_successful_step do |step_data, location|
count_steps(step_data)
end

Spinach.after_run do |status|
Spinach.hooks.after_run do |status|
send_mail if status == 0
end

Expand Down

0 comments on commit 83c0d70

Please sign in to comment.