Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Scenario: When the belongs to is optional and resources is renamed
- Given a configuration of:
- """
- ActiveAdmin.register User
- ActiveAdmin.register Post, as: "Article" do
- belongs_to :user, optional: true
- navigation_menu :default
- end
- """
- When I go to the last author's articles
- Then the "Users" tab should be selected
- And I should see a menu item for "Articles"
- When I follow "Articles"
- Then the "Articles" tab should be selected
- when /^the last author's articles/
- admin_user_articles_path(User.last)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement