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.141 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/registering_resources.feature