Sha256: 6c1279c19baad1a1801c82e230c872409153341c32c98429cb71d4bac12357b7

Contents?: true

Size: 1.44 KB

Versions: 50

Compression:

Stored size: 1.44 KB

Contents

Feature: Show - Default Content

  Viewing the show page for a resource

  Background:
    Given a post with the title "Hello World" written by "Jane Doe" exists

  Scenario: Viewing the default show page
    Given a show configuration of:
      """
        ActiveAdmin.register Post
      """
    Then I should see the attribute "Title" with "Hello World"
    And I should see the attribute "Body" with "Empty"
    And I should see the attribute "Created At" with a nicely formatted datetime
    And I should see the attribute "Author" with "jane_doe"
    And I should see an action item button "Delete Post"
    And I should see an action item button "Edit Post"

  Scenario: Attributes should link when linked resource is registered
    Given a show configuration of:
      """
        ActiveAdmin.register Post
        ActiveAdmin.register User
      """
    Then I should see the attribute "Author" with "jane_doe"
    And I should see a link to "jane_doe"

  Scenario: Customizing the attributes table with a set of attributes
    Given a show configuration of:
    """
      ActiveAdmin.register Post do

        show do
          attributes_table :title, :body, :created_at, :updated_at
        end

      end
    """
    Then I should see the attribute "Title" with "Hello World"
    And I should see the attribute "Body" with "Empty"
    And I should see the attribute "Created At" with a nicely formatted datetime
    And I should not see the attribute "Author"

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/show/default_content.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/show/default_content.feature