From 79da38d9290c2fa11212e5304ab2d2568bae9e04 Mon Sep 17 00:00:00 2001 From: David Kettler <21echoes@gmail.com> Date: Mon, 14 Nov 2011 17:11:22 -0800 Subject: [PATCH] now that photos are not posts, we gotta send posts to the post path in cucumber tests --- features/support/paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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