Created
February 25, 2017 18:15
-
-
Save Fivell/ea5efbfc8b60198676fbab2cfc1d3bf7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
Author
Fivell
commented
Feb 25, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment