Sha256: 7bc984e258d2391dd32f3c2651f76f07a3bf7abfa8f0101550583b245f7a1774

Contents?: true

Size: 932 Bytes

Versions: 42

Compression:

Stored size: 932 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

42 entries across 42 versions & 7 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/registering_resources.feature
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/registering_resources.feature
yousty-activeadmin-1.0.17.pre features/registering_resources.feature
yousty-activeadmin-1.0.16.pre features/registering_resources.feature
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/registering_resources.feature
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/registering_resources.feature
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/registering_resources.feature
yousty-activeadmin-1.0.15.pre features/registering_resources.feature
activeadmin-orac-1.0.0.pre4 features/registering_resources.feature
activeadmin-orac-1.0.0 features/registering_resources.feature
activeadmin-orac-1.0.0.pre.orac features/registering_resources.feature
yousty-activeadmin-1.0.14.pre features/registering_resources.feature
yousty-activeadmin-1.0.13.pre features/registering_resources.feature
yousty-activeadmin-1.0.12.pre features/registering_resources.feature
yousty-activeadmin-1.0.11.pre features/registering_resources.feature
yousty-activeadmin-1.0.10.pre features/registering_resources.feature
yousty-activeadmin-1.0.9.pre features/registering_resources.feature
yousty-activeadmin-1.0.8.pre features/registering_resources.feature
activeadmin-1.0.0.pre4 features/registering_resources.feature
activeadmin-1.0.0.pre3 features/registering_resources.feature