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.94 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.92 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.90 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.84 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.80 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.79 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.78 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.77 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.74 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.73 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.72 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.71 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.66 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.65 vendor/deps/active_admin/features/registering_resources.feature
activeadmin-0.6.0 features/registering_resources.feature
lalala-4.0.0.dev.64 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.63 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.62 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.61 vendor/deps/active_admin/features/registering_resources.feature
lalala-4.0.0.dev.60 vendor/deps/active_admin/features/registering_resources.feature