diff --git a/features/support/paths.rb b/features/support/paths.rb index a77b918cc..3a9e78c44 100644 --- a/features/support/paths.rb +++ b/features/support/paths.rb @@ -30,7 +30,7 @@ module NavigationHelpers when /^the photo page for "([^\"]*)"'s latest post$/ photo_path(User.find_by_email($1).photos.last) 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 /^"(\/.*)"/ $1 else