Skip to content

Commit

Permalink
Finish the "Viewing summary and recipe instructions" scenario
Browse files Browse the repository at this point in the history
  • Loading branch information
eee-c committed Apr 9, 2009
1 parent f3e534a commit 772b261
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions features/step_definitions/recipe_details.rb
Expand Up @@ -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

0 comments on commit 772b261

Please sign in to comment.