Merge pull request #2402 from 21echoes/cuke_path_fix

minor error in features/paths.rb regarding the recent split of posts and photos
This commit is contained in:
pivotalcommon 2011-11-14 17:43:19 -08:00
commit 52aaf33296

View file

@ -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