Sha256: be6460e4b2294101762576c5d0c4250a6c06516baee1b679a543a2ffefa52065

Contents?: true

Size: 1.61 KB

Versions: 15

Compression:

Stored size: 1.61 KB

Contents

Feature: Index Blank Slate

  Viewing an index page with no resources yet

  Scenario: Viewing the default table with no resources
    Given an index configuration of:
      """
        ActiveAdmin.register Post
      """
    Then I should not see a sortable table header
    And I should see "There are no Posts yet. Create one"
    And I should not see ".index_table"
    And I should not see pagination
    When I follow "Create one"
    Then I should be on the new post page
  
  Scenario: Viewing the default table with no resources and no 'new' action
    Given an index configuration of:
      """
        ActiveAdmin.register Post do
          actions :index, :show
        end
      """
    And I should see "There are no Posts yet."
    And I should not see "Create one"
  
  Scenario: Viewing a index using a grid with no resources
    Given an index configuration of:
      """
      ActiveAdmin.register Post do
        index :as => :grid do |post|
          h2 auto_link(post)
        end
      end
      """
    And I should see "There are no Posts yet. Create one"
    
  Scenario: Viewing a index using blocks with no resources
    Given an index configuration of:
      """
      ActiveAdmin.register Post do
        index :as => :block do |post|
          span(link_to(post.title, admin_post_path(post)))
        end
      end
      """
    And I should see "There are no Posts yet. Create one"
    
  Scenario: Viewing a blog with no resources
    Given an index configuration of:
      """
      ActiveAdmin.register Post do
        index :as => :blog
      end
      """
    And I should see "There are no Posts yet. Create one"

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
activeadmin-0.4.4 features/index/index_blank_slate.feature
activeadmin-0.4.3 features/index/index_blank_slate.feature
activeadmin-0.4.2 features/index/index_blank_slate.feature
activeadmin-0.4.1 features/index/index_blank_slate.feature
activeadmin-0.4.0 features/index/index_blank_slate.feature
andrewroth_activeadmin-0.3.4.4 features/index/index_blank_slate.feature
andrewroth_activeadmin-0.3.4.3 features/index/index_blank_slate.feature
andrewroth_activeadmin-0.3.4.2 features/index/index_blank_slate.feature
andrewroth_activeadmin-0.3.4.1 features/index/index_blank_slate.feature
andrewroth_activeadmin-0.3.4 features/index/index_blank_slate.feature
activeadmin-0.3.4 features/index/index_blank_slate.feature
activeadmin-0.3.3 features/index/index_blank_slate.feature
activeadmin-0.3.2 features/index/index_blank_slate.feature
activeadmin-0.3.1 features/index/index_blank_slate.feature
activeadmin-0.3.0 features/index/index_blank_slate.feature