Sha256: 4c132dffb78d520c351338a3054773af8a37bdd09109913c66687c5beceb7329

Contents?: true

Size: 836 Bytes

Versions: 13

Compression:

Stored size: 836 Bytes

Contents

Feature: Belongs To

  A resource belongs to another resource

  Background:
    Given a configuration of:
    """
      ActiveAdmin.register User
      ActiveAdmin.register Post do
        belongs_to :user
      end
    """
    And I am logged in
    And a post with the title "Hello World" written by "John Doe" exists
    And a post with the title "Hello World" written by "Jane Doe" exists

  Scenario: Viewing the child resource index page
    When I go to the last author's posts
    Then the "Users" tab should be selected
    And I should see "Displaying 1 Post"
    And I should see a link to "Users" in the breadcrumb

  Scenario: Viewing a child resource page
    When I go to the last author's posts
    And I follow "View"
    Then I should be on the last author's last post page
    And the "Users" tab should be selected

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
activeadmin-0.5.1 features/belongs_to.feature
activeadmin-0.5.0 features/belongs_to.feature
activeadmin-0.5.0.pre1 features/belongs_to.feature
activeadmin-0.5.0.pre features/belongs_to.feature
activeadmin-0.4.4 features/belongs_to.feature
activeadmin-0.4.3 features/belongs_to.feature
activeadmin-0.4.2 features/belongs_to.feature
activeadmin-0.4.1 features/belongs_to.feature
activeadmin-0.4.0 features/belongs_to.feature
andrewroth_activeadmin-0.3.4.4 features/belongs_to.feature
andrewroth_activeadmin-0.3.4.3 features/belongs_to.feature
andrewroth_activeadmin-0.3.4.2 features/belongs_to.feature
andrewroth_activeadmin-0.3.4.1 features/belongs_to.feature