features/support/paths.rb in activeadmin-1.0.0.pre4 vs features/support/paths.rb in activeadmin-1.0.0.pre5
- old
+ new
@@ -19,10 +19,12 @@
"/admin/posts/new"
when /the login page/
"/admin/login"
when /the first post show page/
"/admin/posts/1"
+ when /the first post custom status page/
+ "/admin/posts/1/status"
when /the first post edit page/
"/admin/posts/1/edit"
when /the admin password reset form with token "([^"]*)"/
"/admin/password/edit?reset_password_token=#{$1}"
@@ -42,9 +44,12 @@
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)
+
+ when /^the last post's show page$/
+ admin_post_path(Post.last)
when /^the last post's edit page$/
edit_admin_post_path(Post.last)
# Add more mappings here.