Sha256: 0058464b207fa76d1bb649b453cf5cadd160f4ec348296a37256276be8db6b5f

Contents?: true

Size: 934 Bytes

Versions: 71

Compression:

Stored size: 934 Bytes

Contents

Feature: Registering Resources

  Registering resources within Active Admin

  Background:
    Given I am logged in
    And a post with the title "Hello World" exists

  Scenario: Registering a resource with the defaults
    Given a configuration of:
    """ 
      ActiveAdmin.register Post
    """
    When I go to the dashboard
    Then I should see "Posts"
    When I follow "Posts"
    Then I should see "Hello World"
    When I follow "View"
    Then I should see "Hello World"
    And I should be in the resource section for Post

  Scenario: Registering a resource with another name
    Given a configuration of:
    """ 
      ActiveAdmin.register Post, :as => "My Post"
    """
    When I go to the dashboard
    Then I should see "My Posts"
    When I follow "My Posts"
    Then I should see "Hello World"
    When I follow "View"
    Then I should see "Hello World"
    And I should be in the resource section for My Post

Version data entries

71 entries across 71 versions & 5 rubygems

Version Path
lalala-4.0.0.dev.59 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.58 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.57 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.56 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.50 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.46 vendor/deps/active_admin/features/registering_resources.feature
activeadmin-0.5.1 features/registering_resources.feature
activeadmin-0.5.0 features/registering_resources.feature
activeadmin-0.5.0.pre1 features/registering_resources.feature
activeadmin-0.5.0.pre features/registering_resources.feature
activeadmin-0.4.4 features/registering_resources.feature
activeadmin-0.4.3 features/registering_resources.feature
activeadmin-0.4.2 features/registering_resources.feature
activeadmin-0.4.1 features/registering_resources.feature
activeadmin-0.4.0 features/registering_resources.feature
andrewroth_activeadmin-0.3.4.4 features/registering_resources.feature
andrewroth_activeadmin-0.3.4.3 features/registering_resources.feature
andrewroth_activeadmin-0.3.4.2 features/registering_resources.feature
andrewroth_activeadmin-0.3.4.1 features/registering_resources.feature
andrewroth_activeadmin-0.3.4 features/registering_resources.feature