now that photos are not posts, we gotta send posts to the post path in cucumber tests
This commit is contained in:
parent
8294472420
commit
79da38d929
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue