Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1013 Bytes
1 | require File.dirname(__FILE__) + "/../../spec_helper" |
2 | |
3 | describe Admin::SnippetsController do |
4 | dataset :users, :snippets |
5 | |
6 | it "should be paginated" do |
7 | Admin::SnippetsController.paginated.should be_true |
8 | controller.paginated?.should be_true |
9 | end |
10 | |
11 | it "should have pagination defaults" do |
12 | controller.pagination_parameters.should == {:page => 1, :per_page => 50} |
13 | controller.will_paginate_options.should == {:param_name => :p} |
14 | end |
15 | |
16 | it "should override defaults with pagination settings from config" do |
17 | Radiant::Config['admin.pagination.per_page'] = 23 |
18 | controller.pagination_parameters.should == {:page => 1, :per_page => 23} |
19 | end |
20 | |
21 | it "should override configuration with pagination settings from paginate_models" do |
22 | Admin::SnippetsController.send :paginate_models, {:per_page => 5, :inner_window => 12} |
23 | controller.pagination_parameters.should == {:page => 1, :per_page => 5} |
24 | controller.will_paginate_options.should == {:inner_window => 12, :param_name => :p} |
25 | end |
26 | end |