Commit 512bd54222b156d7ba98c37bb7b93a1abcc50fa0
1 parent
5f156c9e
Exists in
master
and in
29 other branches
features-paths: add profile path
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
features/support/paths.rb
| @@ -20,6 +20,9 @@ module NavigationHelpers | @@ -20,6 +20,9 @@ module NavigationHelpers | ||
| 20 | when /^\// | 20 | when /^\// |
| 21 | page_name | 21 | page_name |
| 22 | 22 | ||
| 23 | + when /^(.*)'s profile/ | ||
| 24 | + '/profile/' + profile_identifier($1) | ||
| 25 | + | ||
| 23 | when /article "([^"]+)"\s*$/ | 26 | when /article "([^"]+)"\s*$/ |
| 24 | url_for(Article.find_by_name($1).url.merge({:only_path => true})) | 27 | url_for(Article.find_by_name($1).url.merge({:only_path => true})) |
| 25 | 28 |