From 772b2613811d77006ffb429e39261c4c2dd77a9e Mon Sep 17 00:00:00 2001 From: eee-c Date: Thu, 9 Apr 2009 05:30:30 -0400 Subject: [PATCH] Finish the "Viewing summary and recipe instructions" scenario --- features/step_definitions/recipe_details.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/features/step_definitions/recipe_details.rb b/features/step_definitions/recipe_details.rb index 32d7d2b..c338501 100644 --- a/features/step_definitions/recipe_details.rb +++ b/features/step_definitions/recipe_details.rb @@ -179,3 +179,13 @@ response.should have_selector("a", :class => "active", :content => "Vegetarian") response.should_not have_selector("a", :class => "active", :content => "Fish") end + +Then /^I should a nice summary of the dish$/ do + response.should have_selector("p", :content => "This dish is yummy") do |p| + p.should have_selector("strong", :content => "yummy") + end +end + +Then /^I should see detailed, easy\-to\-read instructions$/ do + response.should have_selector("p", :content => "While the shrimp are defrosting, we chop the vegetables.") +end