Sha256: b5eb50174d9d56201cca5c27f890938f9a4a383a58a89f6638bec30c664b3af9

Contents?: true

Size: 986 Bytes

Versions: 7

Compression:

Stored size: 986 Bytes

Contents

@dsl
Feature: Sortable tree index view

  Background:
    Given I am logged in
    And catalogues tree exists:
      | title   | parent_name |
      | _1_     |             |
      | _1-1_   | _1_         |
      | _1-2_   | _1_         |
      | _2_     |             |
      | _2-1_   | _2_         |
      | _2-1-1_ | _2-1_       |

  Scenario: Index view as tree
    Given a configuration of:
      """
      class AbAdminCatalogue < AbAdmin::AbstractResource
        settings :index_view => 'tree'
      end
      """
    And I am on the admin catalogues page
    Then I should see catalogues tree

  Scenario: Custom node view
    Given a configuration of:
      """
      class AbAdminCatalogue < AbAdmin::AbstractResource
        settings :index_view => 'tree'

        tree do |node|
          link_to "Custom node title", root_path, :class => 'tree-item_link'
        end
      end
      """
    And I am on the admin catalogues page
    Then I should see "Custom node title"

Version data entries

7 entries across 7 versions & 1 rubygems

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