Sha256: 06bf36e1a2f08580c723fbc72c60975f2a31fab554f200a399cc61800531c046

Contents?: true

Size: 1.73 KB

Versions: 50

Compression:

Stored size: 1.73 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 do
          batch_action :favourite do
            # nothing
          end
          scope :all, :default => true
        end
      """
    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

50 entries across 50 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/index/index_blank_slate.feature
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/index/index_blank_slate.feature