Sha256: 7418f88dcd0fce9670dc812ed219b52b1a9b9a33f7788407fa6ad4104143ff91
Contents?: true
Size: 1020 Bytes
Versions: 5
Compression:
Stored size: 1020 Bytes
Contents
Feature: Index Pagination Background: Scenario: Viewing index when one page of resources exist Given an index configuration of: """ ActiveAdmin.register Post """ Given 20 posts exist When I am on the index page for posts Then I should see "Displaying all 20 Posts" And I should not see pagination Scenario: Viewing index when multiple pages of resources exist Given an index configuration of: """ ActiveAdmin.register Post """ Given 31 posts exist When I am on the index page for posts Then I should see pagination with 2 pages Scenario: Viewing index with a custom per page set Given an index configuration of: """ ActiveAdmin.register Post do before_filter :only => :index do |controller| @per_page = 10 end end """ Given 11 posts exist When I am on the index page for posts Then I should see pagination with 2 pages And I should see "Displaying Posts 1 - 10 of 11 in total"
Version data entries
5 entries across 5 versions & 2 rubygems