Sha256: ae859caa260cee6373459c89888ef555d6a0b8db87457f9f8edafc3efde9b9b9

Contents?: true

Size: 1.03 KB

Versions: 7

Compression:

Stored size: 1.03 KB

Contents

Feature: Admin menu

  Background:
    Given I am logged in

  Scenario: Show menu tree
    Given i18n key "admin.navigation.system" with value "System"
    And i18n key "admin.navigation.for_admin" with value "for admin"
    And a menu configuration of:
    """
      AbAdmin::MenuBuilder.draw do
        model User
        group :system do
          model Structure
          model Settings, :url => edit_admin_settings_path
        end
        group 'Moderator', :if => proc { moderator? } do
          link 'for moderator', 'dummy_path'
        end
        group 'Admin', :if => :admin? do
          link :for_admin, 'dummy_path'
        end
      end
      """
    When I am on the dashboard page
    Then I should see menu item for "User" with path "/admin/users"
    Then I should see menu item for "Settings" with path "/admin/settings/edit"
    And I should see group "System" with menu item for "Structure"
    And I should see group "Moderator" with menu item for "for moderator"
    And I should see group "Admin" with menu item for "for admin"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ab_admin-0.2.3 features/menu.feature
ab_admin-0.2.2 features/menu.feature
ab_admin-0.2.1 features/menu.feature
ab_admin-0.2.0 features/menu.feature
ab_admin-0.1.2 features/menu.feature
ab_admin-0.1.1 features/menu.feature
ab_admin-0.1.0 features/menu.feature