how to write “Destroy kid” in cucumber
Scenario: User can delete kids
Given I am on the kids page
When I Destroy kid
Then I should see “Kid deleted successfully”
Then one kid should not exist
Listing kids
<% end %>
<%= link_to ‘New Kid’, new_kid_path %>
what to write for this step:
When /^I Destroy kid$/ do
#what to write…
end