Sha256: 116c2f262b473745039378b5644c30f74644d05c7fdabd8722673a40c4c72e8d

Contents?: true

Size: 1.19 KB

Versions: 53

Compression:

Stored size: 1.19 KB

Contents

Feature: Index Formats

  Scenario: View index with default formats
    Given an index configuration of:
    """
      ActiveAdmin.register Post
    """
    And 1 post exists
    When I am on the index page for posts
    Then I should see a link to download "CSV"
    And I should see a link to download "XML"
    And I should see a link to download "JSON"

  Scenario: View index with download_links set to false
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        index :download_links => false
      end
    """
    And 1 post exists
    When I am on the index page for posts
    Then I should not see a link to download "CSV"
    And I should not see a link to download "XML"
    And I should not see a link to download "JSON"

  Scenario: View index with pdf download link set
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        index :download_links => [:pdf]
      end
    """
    And 1 post exists
    When I am on the index page for posts
    Then I should not see a link to download "CSV"
    And I should not see a link to download "XML"
    And I should not see a link to download "JSON"
    And I should see a link to download "PDF"

Version data entries

53 entries across 53 versions & 3 rubygems

Version Path
activeadmin-0.6.6 features/index/formats.feature
activeadmin-0.6.5 features/index/formats.feature
activeadmin-0.6.4 features/index/formats.feature
activeadmin-0.6.3 features/index/formats.feature
activeadmin-0.6.2 features/index/formats.feature
activeadmin-0.6.1 features/index/formats.feature
aa-rails4-0.6.0 features/index/formats.feature
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/index/formats.feature
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/index/formats.feature