Sha256: 9772cd4e6fdde3f1cead743e2e3b25d36744e625b8042cf39524b21878fe3d34

Contents?: true

Size: 475 Bytes

Versions: 21

Compression:

Stored size: 475 Bytes

Contents

Feature: Index as Block

  Viewing the resource as a block which is renderered by the user

  Scenario: Viewing the index as a block
    Given a post with the title "Hello World from Block" exists
    And an index configuration of:
      """
      ActiveAdmin.register Post do
        index as: :block do |post|
          span(link_to(post.title, admin_post_path(post)))
        end
      end
      """
    Then I should see "Hello World from Block" within ".index_as_block"

Version data entries

21 entries across 21 versions & 4 rubygems

Version Path
activeadmin-1.0.0.pre5 features/index/index_as_block.feature