Sha256: 2b8ca4b6ce61f028d4c6e02fd7eb52c2056eb1cc696b50214c4527eeae37905f

Contents?: true

Size: 569 Bytes

Versions: 7

Compression:

Stored size: 569 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"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
activeadmin-0.5.1 features/menu.feature
activeadmin-0.5.0 features/menu.feature
activeadmin-0.5.0.pre1 features/menu.feature
activeadmin-0.5.0.pre features/menu.feature
activeadmin-0.4.4 features/menu.feature
activeadmin-0.4.3 features/menu.feature
activeadmin-0.4.2 features/menu.feature