Sha256: 7e9c576163bbdb8c0d15f3c3aa90873a8bac974a94c233a0eb0467462e6ecb08

Contents?: true

Size: 1.5 KB

Versions: 26

Compression:

Stored size: 1.5 KB

Contents

Feature: Show - Default Content

  Viewing the show page for a resource

  Background:
    Given a unstarred 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 the attribute "Starred" with "No"
    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

26 entries across 26 versions & 5 rubygems

Version Path
activeadmin-rails-1.7.1 features/show/default_content.feature
activeadmin-rails-1.7.0 features/show/default_content.feature
activeadmin-rb-1.6.0 features/show/default_content.feature
activeadmin-rb-1.5.2 features/show/default_content.feature
activeadmin-rb-1.5.1 features/show/default_content.feature
activeadmin-rb-1.5.0 features/show/default_content.feature
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin-rb-1.4.0 features/show/default_content.feature
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin-1.3.1 features/show/default_content.feature
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin-1.3.0 features/show/default_content.feature
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/features/show/default_content.feature
activeadmin-1.2.1 features/show/default_content.feature
activeadmin-1.2.0 features/show/default_content.feature
activeadmin-1.1.0 features/show/default_content.feature
activeadmin-1.0.0 features/show/default_content.feature