Sha256: 44923ad476527988bfd837e0388d9f7c5f04f5dcfc7e0af1eca1c68662251c68

Contents?: true

Size: 1.44 KB

Versions: 21

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 User
        ActiveAdmin.register Post
      """
    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

21 entries across 21 versions & 4 rubygems

Version Path
activeadmin-0.4.4 features/show/default_content.feature
activeadmin-0.4.3 features/show/default_content.feature
activeadmin-0.4.2 features/show/default_content.feature
activeadmin-0.4.1 features/show/default_content.feature
activeadmin-0.4.0 features/show/default_content.feature
andrewroth_activeadmin-0.3.4.4 features/show/default_content.feature
andrewroth_activeadmin-0.3.4.3 features/show/default_content.feature
andrewroth_activeadmin-0.3.4.2 features/show/default_content.feature
andrewroth_activeadmin-0.3.4.1 features/show/default_content.feature
andrewroth_activeadmin-0.3.4 features/show/default_content.feature
activeadmin-0.3.4 features/show/default_content.feature
activeadmin-0.3.3 features/show/default_content.feature
activeadmin-0.3.2 features/show/default_content.feature
activeadmin-0.3.1 features/show/default_content.feature
activeadmin-0.3.0 features/show/default_content.feature
nsm-activeadmin-0.2.2 features/show/default_content.feature
saulolso-activeadmin-0.2.2.1 features/show/default_content.feature
saulolso-activeadmin-0.2.2 features/show/default_content.feature
activeadmin-0.2.2 features/show/default_content.feature
activeadmin-0.2.1 features/show/default_content.feature