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
activeadmin-0.3.4 features/registering_resources.feature
activeadmin-0.3.3 features/registering_resources.feature
activeadmin-0.3.2 features/registering_resources.feature
activeadmin-0.3.1 features/registering_resources.feature
activeadmin-0.3.0 features/registering_resources.feature
nsm-activeadmin-0.2.2 features/registering_resources.feature
saulolso-activeadmin-0.2.2.1 features/registering_resources.feature
saulolso-activeadmin-0.2.2 features/registering_resources.feature
activeadmin-0.2.2 features/registering_resources.feature
activeadmin-0.2.1 features/registering_resources.feature
activeadmin-0.2.0 features/registering_resources.feature