features/support/paths.rb in activeadmin-0.3.4 vs features/support/paths.rb in activeadmin-0.4.0
- old
+ new
@@ -26,9 +26,15 @@
# same as above, except defaults to admin namespace
when /^the index page for (.*)$/
send(:"admin_#{$1}_path")
+ when /^the last author's posts$/
+ admin_user_posts_path(User.last)
+
+ when /^the last author's last post page$/
+ admin_user_post_path(User.last, Post.where(:author_id => User.last.id).last)
+
# Add more mappings here.
# Here is an example that pulls values out of the Regexp:
#
# when /^(.*)'s profile page$/i
# user_profile_path(User.find_by_login($1))