diff --git a/features/recipe_details.feature b/features/recipe_details.feature index 492ee0e..eede41a 100644 --- a/features/recipe_details.feature +++ b/features/recipe_details.feature @@ -23,7 +23,7 @@ Feature: Recipe Details Given a recipe for Chicken Noodle Soup When I view the recipe - Then I should see that it requires a bowl, a colander, a cutting board, a pot and a skimmer to prepare + Then I should see that it requires a Bowl, a Colander, a Cutting Board, a Pot and a Skimmer to prepare Scenario: Main site categories diff --git a/features/step_definitions/recipe_details.rb b/features/step_definitions/recipe_details.rb index 33d4848..d4125b6 100644 --- a/features/step_definitions/recipe_details.rb +++ b/features/step_definitions/recipe_details.rb @@ -114,3 +114,11 @@ response.should contain("Inactive Time: 5 hours") end +Then /^I should see that it requires (.+) to prepare$/ do |tool_list| + tools = tool_list. + split(/\s*(,|and)\s*/). + reject{|str| str == "," || str == "and"} + tools.each do |tool| + response.should contain(tool.sub(/an? /, '')) + end +end