Permalink
Browse files

Add stepdefs for first around hook scenario

  • Loading branch information...
1 parent 7b5b642 commit 0f9d5687b19336e04e51e19861bc359a332aff4a @jbpros jbpros committed Feb 18, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 step_definitions/cucumber_stepdefs.rb
@@ -62,6 +62,10 @@
write_passing_hook hook_type
end
+Given /^a passing around hook$/ do
+ write_passing_hook "around"
+end
+
Given /^a scenario without any tags$/ do
write_scenario
end
@@ -231,6 +235,10 @@
end
end
+Then /^the around hook fires around the scenario$/ do
+ assert_cycle_sequence('around-pre', 'step 1', 'around-post')
+end
+
Then /^the received data table array equals the following:$/ do |json|
assert_data_table_equals_json(json)
end

0 comments on commit 0f9d568

Please sign in to comment.