now that photos are not posts, we gotta send posts to the post path in cucumber tests

This commit is contained in:
David Kettler 2011-11-14 17:11:22 -08:00
parent 8294472420
commit 79da38d929

View file

@ -30,7 +30,7 @@ module NavigationHelpers
when /^the photo page for "([^\"]*)"'s latest post$/ when /^the photo page for "([^\"]*)"'s latest post$/
photo_path(User.find_by_email($1).photos.last) photo_path(User.find_by_email($1).photos.last)
when /^the photo page for "([^\"]*)"'s post "([^\"]*)"$/ when /^the photo page for "([^\"]*)"'s post "([^\"]*)"$/
photo_path(User.find_by_email($1).posts.find_by_text($2)) post_path(User.find_by_email($1).posts.find_by_text($2))
when /^"(\/.*)"/ when /^"(\/.*)"/
$1 $1
else else