menu.feature 569 B

1234567891011121314151617181920212223242526
  1. Feature: Menu
  2. Background:
  3. Given I am logged in
  4. Scenario: Hide the menu item
  5. Given a configuration of:
  6. """
  7. ActiveAdmin.register Post do
  8. menu false
  9. end
  10. """
  11. When I am on the dashboard
  12. Then I should not see a menu item for "Posts"
  13. Scenario: Set the menu item label
  14. Given a configuration of:
  15. """
  16. ActiveAdmin.register Post do
  17. menu :label => "Articles"
  18. end
  19. """
  20. When I am on the dashboard
  21. Then I should see a menu item for "Articles"
  22. And I should not see a menu item for "Posts"