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.58 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.57 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.56 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.50 vendor/deps/active_admin/features/menu.feature
lalala-4.0.0.dev.46 vendor/deps/active_admin/features/menu.feature