Sha256: 8faf6dd9f6d1f5125c458308b1fabe75de13551b32772c1d76bb1b94eb0129bf

Contents?: true

Size: 1009 Bytes

Versions: 45

Compression:

Stored size: 1009 Bytes

Contents

Feature: Menu

  Background:
    Given I am logged in

  Scenario: Hide the menu item
    Given a configuration of:
    """
      ActiveAdmin.register Post do
        menu false
      end
    """
    When I am on the dashboard
    Then I should not see a menu item for "Posts"

  Scenario: Set the menu item label
    Given a configuration of:
    """
      ActiveAdmin.register Post do
        menu :label => "Articles"
      end
    """
    When I am on the dashboard
    Then I should see a menu item for "Articles"
    And I should not see a menu item for "Posts"

  Scenario: Add a non-resource menu item
    Given a configuration of:
    """
      ActiveAdmin.application.namespace :admin do |admin|
        admin.build_menu do |menu|
          menu.add :label => "Custom Menu", :url => :admin_dashboard_path
        end
      end
    """
    When I am on the dashboard
    Then I should see a menu item for "Custom Menu"
    When I follow "Custom Menu"
    Then I should be on the admin dashboard page

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/menu.feature