|
Then(/^within "(.*?)" I should see "(.*?)"$/) do |arg1, arg2|
# within(arg1) do
# page.should have_content(arg2)
# end
page.find(arg1).should have_content(arg2)
end
Then(/^within "(.*?)" I should not see "(.*?)"$/) do |arg1, arg2|
page.find(arg1).should_not have_content(arg2)
end
|