Sha256: 1c78c3e65232e5b4e44ff5e44f6942ba309ee0181042df9abecea0274aa5349e

Contents?: true

Size: 805 Bytes

Versions: 5

Compression:

Stored size: 805 Bytes

Contents

Feature: Filter with check boxes

  Background:
    Given an index configuration of:
    """
      ActiveAdmin.register Post do
        filter :author, :as => :check_boxes
      end
    """
    And a post with the title "Hello World" written by "Jane Doe" exists
    And 1 post exists
    And I am on the index page for posts

  Scenario: Filtering posts written by anyone
    When I press "Filter"
    Then I should see 2 posts in the table
    And I should see "Hello World" within ".index_table"
    And the "jane_doe" checkbox should not be checked

  Scenario: Filtering posts written by Jane Doe
    When I check "jane_doe"
    And I press "Filter"
    Then I should see 1 posts in the table
    And I should see "Hello World" within ".index_table"
    And the "jane_doe" checkbox should be checked

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
activeadmin-0.4.0 features/index/filter_with_check_boxes.feature
andrewroth_activeadmin-0.3.4.4 features/index/filter_with_check_boxes.feature
andrewroth_activeadmin-0.3.4.3 features/index/filter_with_check_boxes.feature
andrewroth_activeadmin-0.3.4.2 features/index/filter_with_check_boxes.feature
andrewroth_activeadmin-0.3.4.1 features/index/filter_with_check_boxes.feature