rails_pagination 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
 - data/README.rdoc +62 -0
 - data/Rakefile +38 -0
 - data/lib/rails_pagination/action_view/base.rb +11 -0
 - data/lib/rails_pagination/active_record/base.rb +25 -0
 - data/lib/rails_pagination/active_record/relation.rb +82 -0
 - data/lib/rails_pagination/navigation.rb +39 -0
 - data/lib/rails_pagination/pager.rb +97 -0
 - data/lib/rails_pagination/railtie.rb +15 -0
 - data/lib/rails_pagination/version.rb +5 -0
 - data/lib/rails_pagination.rb +10 -0
 - data/test/collection_empty_test.rb +41 -0
 - data/test/collection_first_test.rb +42 -0
 - data/test/collection_last_test.rb +42 -0
 - data/test/collection_middle_test.rb +42 -0
 - data/test/collection_padding_test.rb +83 -0
 - data/test/dummy/README.rdoc +261 -0
 - data/test/dummy/Rakefile +7 -0
 - data/test/dummy/app/assets/javascripts/application.js +15 -0
 - data/test/dummy/app/assets/stylesheets/application.css +13 -0
 - data/test/dummy/app/controllers/application_controller.rb +3 -0
 - data/test/dummy/app/controllers/test_controller.rb +7 -0
 - data/test/dummy/app/helpers/application_helper.rb +2 -0
 - data/test/dummy/app/models/model.rb +3 -0
 - data/test/dummy/app/views/layouts/application.html.erb +14 -0
 - data/test/dummy/app/views/test/index.html.erb +30 -0
 - data/test/dummy/config/application.rb +59 -0
 - data/test/dummy/config/boot.rb +10 -0
 - data/test/dummy/config/database.yml +25 -0
 - data/test/dummy/config/environment.rb +5 -0
 - data/test/dummy/config/environments/development.rb +37 -0
 - data/test/dummy/config/environments/production.rb +67 -0
 - data/test/dummy/config/environments/test.rb +37 -0
 - data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
 - data/test/dummy/config/initializers/inflections.rb +15 -0
 - data/test/dummy/config/initializers/mime_types.rb +5 -0
 - data/test/dummy/config/initializers/secret_token.rb +7 -0
 - data/test/dummy/config/initializers/session_store.rb +8 -0
 - data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
 - data/test/dummy/config/locales/en.yml +5 -0
 - data/test/dummy/config/routes.rb +61 -0
 - data/test/dummy/config.ru +4 -0
 - data/test/dummy/db/development.sqlite3 +0 -0
 - data/test/dummy/db/migrate/20120908215532_create_models.rb +8 -0
 - data/test/dummy/db/schema.rb +22 -0
 - data/test/dummy/db/test.sqlite3 +0 -0
 - data/test/dummy/log/development.log +1998 -0
 - data/test/dummy/log/test.log +149351 -0
 - data/test/dummy/public/404.html +26 -0
 - data/test/dummy/public/422.html +26 -0
 - data/test/dummy/public/500.html +25 -0
 - data/test/dummy/public/favicon.ico +0 -0
 - data/test/dummy/script/rails +6 -0
 - data/test/dummy/tmp/cache/assets/CBF/7A0/sprockets%2Fc9192594b6d1b927590d37ebad844808 +0 -0
 - data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
 - data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
 - data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
 - data/test/dummy/tmp/cache/assets/D50/930/sprockets%2F277654ad498bbc928b88364ffcbad129 +0 -0
 - data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
 - data/test/dummy/tmp/cache/assets/DB2/700/sprockets%2Fa4f4b12a5cbea015faede527e4a04307 +0 -0
 - data/test/dummy/tmp/cache/assets/DD5/C50/sprockets%2Fcdcdad84697d0b186a1de99f1950e5ab +0 -0
 - data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
 - data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
 - data/test/helpers_empty_test.rb +46 -0
 - data/test/helpers_first_test.rb +47 -0
 - data/test/helpers_last_test.rb +47 -0
 - data/test/helpers_middle_test.rb +47 -0
 - data/test/rails_pagination_test.rb +9 -0
 - data/test/test_helper.rb +21 -0
 - metadata +204 -0
 
| 
         @@ -0,0 +1,26 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 3 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 4 
     | 
    
         
            +
              <title>The page you were looking for doesn't exist (404)</title>
         
     | 
| 
      
 5 
     | 
    
         
            +
              <style type="text/css">
         
     | 
| 
      
 6 
     | 
    
         
            +
                body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
         
     | 
| 
      
 7 
     | 
    
         
            +
                div.dialog {
         
     | 
| 
      
 8 
     | 
    
         
            +
                  width: 25em;
         
     | 
| 
      
 9 
     | 
    
         
            +
                  padding: 0 4em;
         
     | 
| 
      
 10 
     | 
    
         
            +
                  margin: 4em auto 0 auto;
         
     | 
| 
      
 11 
     | 
    
         
            +
                  border: 1px solid #ccc;
         
     | 
| 
      
 12 
     | 
    
         
            +
                  border-right-color: #999;
         
     | 
| 
      
 13 
     | 
    
         
            +
                  border-bottom-color: #999;
         
     | 
| 
      
 14 
     | 
    
         
            +
                }
         
     | 
| 
      
 15 
     | 
    
         
            +
                h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
         
     | 
| 
      
 16 
     | 
    
         
            +
              </style>
         
     | 
| 
      
 17 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 20 
     | 
    
         
            +
              <!-- This file lives in public/404.html -->
         
     | 
| 
      
 21 
     | 
    
         
            +
              <div class="dialog">
         
     | 
| 
      
 22 
     | 
    
         
            +
                <h1>The page you were looking for doesn't exist.</h1>
         
     | 
| 
      
 23 
     | 
    
         
            +
                <p>You may have mistyped the address or the page may have moved.</p>
         
     | 
| 
      
 24 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 25 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 26 
     | 
    
         
            +
            </html>
         
     | 
| 
         @@ -0,0 +1,26 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 3 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 4 
     | 
    
         
            +
              <title>The change you wanted was rejected (422)</title>
         
     | 
| 
      
 5 
     | 
    
         
            +
              <style type="text/css">
         
     | 
| 
      
 6 
     | 
    
         
            +
                body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
         
     | 
| 
      
 7 
     | 
    
         
            +
                div.dialog {
         
     | 
| 
      
 8 
     | 
    
         
            +
                  width: 25em;
         
     | 
| 
      
 9 
     | 
    
         
            +
                  padding: 0 4em;
         
     | 
| 
      
 10 
     | 
    
         
            +
                  margin: 4em auto 0 auto;
         
     | 
| 
      
 11 
     | 
    
         
            +
                  border: 1px solid #ccc;
         
     | 
| 
      
 12 
     | 
    
         
            +
                  border-right-color: #999;
         
     | 
| 
      
 13 
     | 
    
         
            +
                  border-bottom-color: #999;
         
     | 
| 
      
 14 
     | 
    
         
            +
                }
         
     | 
| 
      
 15 
     | 
    
         
            +
                h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
         
     | 
| 
      
 16 
     | 
    
         
            +
              </style>
         
     | 
| 
      
 17 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 20 
     | 
    
         
            +
              <!-- This file lives in public/422.html -->
         
     | 
| 
      
 21 
     | 
    
         
            +
              <div class="dialog">
         
     | 
| 
      
 22 
     | 
    
         
            +
                <h1>The change you wanted was rejected.</h1>
         
     | 
| 
      
 23 
     | 
    
         
            +
                <p>Maybe you tried to change something you didn't have access to.</p>
         
     | 
| 
      
 24 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 25 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 26 
     | 
    
         
            +
            </html>
         
     | 
| 
         @@ -0,0 +1,25 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            <!DOCTYPE html>
         
     | 
| 
      
 2 
     | 
    
         
            +
            <html>
         
     | 
| 
      
 3 
     | 
    
         
            +
            <head>
         
     | 
| 
      
 4 
     | 
    
         
            +
              <title>We're sorry, but something went wrong (500)</title>
         
     | 
| 
      
 5 
     | 
    
         
            +
              <style type="text/css">
         
     | 
| 
      
 6 
     | 
    
         
            +
                body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
         
     | 
| 
      
 7 
     | 
    
         
            +
                div.dialog {
         
     | 
| 
      
 8 
     | 
    
         
            +
                  width: 25em;
         
     | 
| 
      
 9 
     | 
    
         
            +
                  padding: 0 4em;
         
     | 
| 
      
 10 
     | 
    
         
            +
                  margin: 4em auto 0 auto;
         
     | 
| 
      
 11 
     | 
    
         
            +
                  border: 1px solid #ccc;
         
     | 
| 
      
 12 
     | 
    
         
            +
                  border-right-color: #999;
         
     | 
| 
      
 13 
     | 
    
         
            +
                  border-bottom-color: #999;
         
     | 
| 
      
 14 
     | 
    
         
            +
                }
         
     | 
| 
      
 15 
     | 
    
         
            +
                h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
         
     | 
| 
      
 16 
     | 
    
         
            +
              </style>
         
     | 
| 
      
 17 
     | 
    
         
            +
            </head>
         
     | 
| 
      
 18 
     | 
    
         
            +
             
     | 
| 
      
 19 
     | 
    
         
            +
            <body>
         
     | 
| 
      
 20 
     | 
    
         
            +
              <!-- This file lives in public/500.html -->
         
     | 
| 
      
 21 
     | 
    
         
            +
              <div class="dialog">
         
     | 
| 
      
 22 
     | 
    
         
            +
                <h1>We're sorry, but something went wrong.</h1>
         
     | 
| 
      
 23 
     | 
    
         
            +
              </div>
         
     | 
| 
      
 24 
     | 
    
         
            +
            </body>
         
     | 
| 
      
 25 
     | 
    
         
            +
            </html>
         
     | 
| 
         
            File without changes
         
     | 
| 
         @@ -0,0 +1,6 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            #!/usr/bin/env ruby
         
     | 
| 
      
 2 
     | 
    
         
            +
            # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            APP_PATH = File.expand_path('../../config/application',  __FILE__)
         
     | 
| 
      
 5 
     | 
    
         
            +
            require File.expand_path('../../config/boot',  __FILE__)
         
     | 
| 
      
 6 
     | 
    
         
            +
            require 'rails/commands'
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         @@ -0,0 +1,46 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'test_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class HelpersEmptyTest < ActionView::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              include RailsPagination::ActionView::Base
         
     | 
| 
      
 5 
     | 
    
         
            +
              
         
     | 
| 
      
 6 
     | 
    
         
            +
              setup :create_pager
         
     | 
| 
      
 7 
     | 
    
         
            +
             
         
     | 
| 
      
 8 
     | 
    
         
            +
              test "should not have multiple pages" do
         
     | 
| 
      
 9 
     | 
    
         
            +
                assert !@pager.has_multiple_pages?
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
              
         
     | 
| 
      
 12 
     | 
    
         
            +
              test "should not have first page" do
         
     | 
| 
      
 13 
     | 
    
         
            +
                assert !@pager.has_first_page?
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
              
         
     | 
| 
      
 16 
     | 
    
         
            +
              test "should not have previous page" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                assert !@pager.has_previous_page?
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              test "should not have next page" do
         
     | 
| 
      
 21 
     | 
    
         
            +
                assert !@pager.has_next_page?
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              test "should not have last page" do
         
     | 
| 
      
 25 
     | 
    
         
            +
                assert !@pager.has_last_page?
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              test "should not have less pages" do
         
     | 
| 
      
 29 
     | 
    
         
            +
                assert !@pager.navigation.has_less_pages?
         
     | 
| 
      
 30 
     | 
    
         
            +
              end
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
              test "should start at 1 and end at 1" do
         
     | 
| 
      
 33 
     | 
    
         
            +
                assert_equal @pager.navigation.pages, 1..1
         
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
              test "shuld not have more pages" do
         
     | 
| 
      
 37 
     | 
    
         
            +
                assert !@pager.navigation.has_more_pages?
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              protected
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
              def create_pager
         
     | 
| 
      
 43 
     | 
    
         
            +
                @pager = paginate(Model.page(1).per(2), :navigation => 3, :parameter => :page)
         
     | 
| 
      
 44 
     | 
    
         
            +
              end
         
     | 
| 
      
 45 
     | 
    
         
            +
             
     | 
| 
      
 46 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,47 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'test_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class HelpersFirstTest < ActionView::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              include RailsPagination::ActionView::Base
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              setup :create_pager
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              test "should have multiple pages" do
         
     | 
| 
      
 9 
     | 
    
         
            +
                assert @pager.has_multiple_pages?
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
              test "should not have first page" do
         
     | 
| 
      
 13 
     | 
    
         
            +
                assert !@pager.has_first_page?
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
              
         
     | 
| 
      
 16 
     | 
    
         
            +
              test "should not have previous page" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                assert !@pager.has_previous_page?
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              test "should have next page" do
         
     | 
| 
      
 21 
     | 
    
         
            +
                assert @pager.has_next_page?
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              test "should have last page" do
         
     | 
| 
      
 25 
     | 
    
         
            +
                assert @pager.has_last_page?
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              test "should not have less pages" do
         
     | 
| 
      
 29 
     | 
    
         
            +
                assert !@pager.navigation.has_less_pages?
         
     | 
| 
      
 30 
     | 
    
         
            +
              end
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
              test "should have start at 1 and end at 3" do
         
     | 
| 
      
 33 
     | 
    
         
            +
                assert_equal @pager.navigation.pages, 1..3
         
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
              test "shuld have more pages" do
         
     | 
| 
      
 37 
     | 
    
         
            +
                assert @pager.navigation.has_more_pages?
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              protected
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
              def create_pager
         
     | 
| 
      
 43 
     | 
    
         
            +
                10.times.each { |id| Model.create :title => "Record #{id}" }
         
     | 
| 
      
 44 
     | 
    
         
            +
                @pager = paginate(Model.page(1).per(2), :navigation => 3, :parameter => :page)
         
     | 
| 
      
 45 
     | 
    
         
            +
              end
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,47 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'test_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class HelpersLastTest < ActionView::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              include RailsPagination::ActionView::Base
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              setup :create_pager
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              test "should have multiple pages" do
         
     | 
| 
      
 9 
     | 
    
         
            +
                assert @pager.has_multiple_pages?
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
              
         
     | 
| 
      
 12 
     | 
    
         
            +
              test "should have first page" do
         
     | 
| 
      
 13 
     | 
    
         
            +
                assert @pager.has_first_page?
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
              test "should have previous page" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                assert @pager.has_previous_page?
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              test "should not have next page" do
         
     | 
| 
      
 21 
     | 
    
         
            +
                assert !@pager.has_next_page?
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              test "should not have last page" do
         
     | 
| 
      
 25 
     | 
    
         
            +
                assert !@pager.has_last_page?
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              test "should have less pages" do
         
     | 
| 
      
 29 
     | 
    
         
            +
                assert @pager.navigation.has_less_pages?
         
     | 
| 
      
 30 
     | 
    
         
            +
              end
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
              test "should start at 3 and end at 5" do
         
     | 
| 
      
 33 
     | 
    
         
            +
                assert_equal @pager.navigation.pages, 3..5
         
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
              test "shuld not have more pages" do
         
     | 
| 
      
 37 
     | 
    
         
            +
                assert !@pager.navigation.has_more_pages?
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              protected
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
              def create_pager
         
     | 
| 
      
 43 
     | 
    
         
            +
                10.times.each { |id| Model.create :title => "Record #{id}" }
         
     | 
| 
      
 44 
     | 
    
         
            +
                @pager = paginate(Model.page(5).per(2), :navigation => 3, :parameter => :page)
         
     | 
| 
      
 45 
     | 
    
         
            +
              end
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
            end
         
     | 
| 
         @@ -0,0 +1,47 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require 'test_helper'
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            class HelpersMiddleTest < ActionView::TestCase
         
     | 
| 
      
 4 
     | 
    
         
            +
              include RailsPagination::ActionView::Base
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
      
 6 
     | 
    
         
            +
              setup :create_pager
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
              test "should have multiple pages" do
         
     | 
| 
      
 9 
     | 
    
         
            +
                assert @pager.has_multiple_pages?
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
              
         
     | 
| 
      
 12 
     | 
    
         
            +
              test "should have first page" do
         
     | 
| 
      
 13 
     | 
    
         
            +
                assert @pager.has_first_page?
         
     | 
| 
      
 14 
     | 
    
         
            +
              end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
              test "should have previous page" do
         
     | 
| 
      
 17 
     | 
    
         
            +
                assert @pager.has_previous_page?
         
     | 
| 
      
 18 
     | 
    
         
            +
              end
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
              test "should have next page" do
         
     | 
| 
      
 21 
     | 
    
         
            +
                assert @pager.has_next_page?
         
     | 
| 
      
 22 
     | 
    
         
            +
              end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
              test "should have last page" do
         
     | 
| 
      
 25 
     | 
    
         
            +
                assert @pager.has_last_page?
         
     | 
| 
      
 26 
     | 
    
         
            +
              end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
              test "should have less pages" do
         
     | 
| 
      
 29 
     | 
    
         
            +
                assert @pager.navigation.has_less_pages?
         
     | 
| 
      
 30 
     | 
    
         
            +
              end
         
     | 
| 
      
 31 
     | 
    
         
            +
             
     | 
| 
      
 32 
     | 
    
         
            +
              test "should start at 2 and end at 4" do
         
     | 
| 
      
 33 
     | 
    
         
            +
                assert_equal @pager.navigation.pages, 2..4
         
     | 
| 
      
 34 
     | 
    
         
            +
              end
         
     | 
| 
      
 35 
     | 
    
         
            +
             
     | 
| 
      
 36 
     | 
    
         
            +
              test "shuld have more pages" do
         
     | 
| 
      
 37 
     | 
    
         
            +
                assert @pager.navigation.has_more_pages?
         
     | 
| 
      
 38 
     | 
    
         
            +
              end
         
     | 
| 
      
 39 
     | 
    
         
            +
             
     | 
| 
      
 40 
     | 
    
         
            +
              protected
         
     | 
| 
      
 41 
     | 
    
         
            +
             
     | 
| 
      
 42 
     | 
    
         
            +
              def create_pager
         
     | 
| 
      
 43 
     | 
    
         
            +
                10.times.each { |id| Model.create :title => "Record #{id}" }
         
     | 
| 
      
 44 
     | 
    
         
            +
                @pager = paginate(Model.page(3).per(2), :navigation => 3, :parameter => :page)
         
     | 
| 
      
 45 
     | 
    
         
            +
              end
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
            end
         
     | 
    
        data/test/test_helper.rb
    ADDED
    
    | 
         @@ -0,0 +1,21 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # Configure Rails Environment
         
     | 
| 
      
 2 
     | 
    
         
            +
            ENV['RAILS_ENV'] = 'test'
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            require File.expand_path('../dummy/config/environment.rb',  __FILE__)
         
     | 
| 
      
 5 
     | 
    
         
            +
            require 'rails/test_help'
         
     | 
| 
      
 6 
     | 
    
         
            +
             
     | 
| 
      
 7 
     | 
    
         
            +
            Rails.backtrace_cleaner.remove_silencers!
         
     | 
| 
      
 8 
     | 
    
         
            +
             
     | 
| 
      
 9 
     | 
    
         
            +
            # Load support files
         
     | 
| 
      
 10 
     | 
    
         
            +
            Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            # Load fixtures from the engine
         
     | 
| 
      
 13 
     | 
    
         
            +
            if ActiveSupport::TestCase.method_defined?(:fixture_path=)
         
     | 
| 
      
 14 
     | 
    
         
            +
              ActiveSupport::TestCase.fixture_path = File.expand_path('../fixtures', __FILE__)
         
     | 
| 
      
 15 
     | 
    
         
            +
            end
         
     | 
| 
      
 16 
     | 
    
         
            +
             
     | 
| 
      
 17 
     | 
    
         
            +
            # Load database
         
     | 
| 
      
 18 
     | 
    
         
            +
            config = YAML::load(File.read(File.expand_path('../dummy/config/database.yml', __FILE__)))
         
     | 
| 
      
 19 
     | 
    
         
            +
            config['test']['adapter'] = 'jdbcsqlite3' if RUBY_PLATFORM == 'java'
         
     | 
| 
      
 20 
     | 
    
         
            +
            ActiveRecord::Base.establish_connection(config['test'])
         
     | 
| 
      
 21 
     | 
    
         
            +
            load(File.expand_path('../dummy/db/schema.rb', __FILE__))
         
     | 
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,204 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: rails_pagination
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.0.5
         
     | 
| 
      
 5 
     | 
    
         
            +
              prerelease: 
         
     | 
| 
      
 6 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 7 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 8 
     | 
    
         
            +
            - Mattways
         
     | 
| 
      
 9 
     | 
    
         
            +
            autorequire: 
         
     | 
| 
      
 10 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 11 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2013-04-05 00:00:00.000000000 Z
         
     | 
| 
      
 13 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 14 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 15 
     | 
    
         
            +
              name: rails
         
     | 
| 
      
 16 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 17 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 18 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 19 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 20 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 21 
     | 
    
         
            +
                    version: 3.2.8
         
     | 
| 
      
 22 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 23 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 24 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 25 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 26 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 27 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 28 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 29 
     | 
    
         
            +
                    version: 3.2.8
         
     | 
| 
      
 30 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 31 
     | 
    
         
            +
              name: sqlite3
         
     | 
| 
      
 32 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 33 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 34 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 35 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 36 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 37 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 38 
     | 
    
         
            +
              type: :development
         
     | 
| 
      
 39 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 40 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 41 
     | 
    
         
            +
                none: false
         
     | 
| 
      
 42 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 43 
     | 
    
         
            +
                - - ! '>='
         
     | 
| 
      
 44 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 45 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 46 
     | 
    
         
            +
            description: Inspired in kaminari and will_paginate but more minimalistic.
         
     | 
| 
      
 47 
     | 
    
         
            +
            email:
         
     | 
| 
      
 48 
     | 
    
         
            +
            - contact@mattways.com
         
     | 
| 
      
 49 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 50 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 51 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 52 
     | 
    
         
            +
            files:
         
     | 
| 
      
 53 
     | 
    
         
            +
            - lib/rails_pagination/action_view/base.rb
         
     | 
| 
      
 54 
     | 
    
         
            +
            - lib/rails_pagination/active_record/base.rb
         
     | 
| 
      
 55 
     | 
    
         
            +
            - lib/rails_pagination/active_record/relation.rb
         
     | 
| 
      
 56 
     | 
    
         
            +
            - lib/rails_pagination/navigation.rb
         
     | 
| 
      
 57 
     | 
    
         
            +
            - lib/rails_pagination/pager.rb
         
     | 
| 
      
 58 
     | 
    
         
            +
            - lib/rails_pagination/railtie.rb
         
     | 
| 
      
 59 
     | 
    
         
            +
            - lib/rails_pagination/version.rb
         
     | 
| 
      
 60 
     | 
    
         
            +
            - lib/rails_pagination.rb
         
     | 
| 
      
 61 
     | 
    
         
            +
            - MIT-LICENSE
         
     | 
| 
      
 62 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 63 
     | 
    
         
            +
            - README.rdoc
         
     | 
| 
      
 64 
     | 
    
         
            +
            - test/collection_empty_test.rb
         
     | 
| 
      
 65 
     | 
    
         
            +
            - test/collection_first_test.rb
         
     | 
| 
      
 66 
     | 
    
         
            +
            - test/collection_last_test.rb
         
     | 
| 
      
 67 
     | 
    
         
            +
            - test/collection_middle_test.rb
         
     | 
| 
      
 68 
     | 
    
         
            +
            - test/collection_padding_test.rb
         
     | 
| 
      
 69 
     | 
    
         
            +
            - test/dummy/app/assets/javascripts/application.js
         
     | 
| 
      
 70 
     | 
    
         
            +
            - test/dummy/app/assets/stylesheets/application.css
         
     | 
| 
      
 71 
     | 
    
         
            +
            - test/dummy/app/controllers/application_controller.rb
         
     | 
| 
      
 72 
     | 
    
         
            +
            - test/dummy/app/controllers/test_controller.rb
         
     | 
| 
      
 73 
     | 
    
         
            +
            - test/dummy/app/helpers/application_helper.rb
         
     | 
| 
      
 74 
     | 
    
         
            +
            - test/dummy/app/models/model.rb
         
     | 
| 
      
 75 
     | 
    
         
            +
            - test/dummy/app/views/layouts/application.html.erb
         
     | 
| 
      
 76 
     | 
    
         
            +
            - test/dummy/app/views/test/index.html.erb
         
     | 
| 
      
 77 
     | 
    
         
            +
            - test/dummy/config/application.rb
         
     | 
| 
      
 78 
     | 
    
         
            +
            - test/dummy/config/boot.rb
         
     | 
| 
      
 79 
     | 
    
         
            +
            - test/dummy/config/database.yml
         
     | 
| 
      
 80 
     | 
    
         
            +
            - test/dummy/config/environment.rb
         
     | 
| 
      
 81 
     | 
    
         
            +
            - test/dummy/config/environments/development.rb
         
     | 
| 
      
 82 
     | 
    
         
            +
            - test/dummy/config/environments/production.rb
         
     | 
| 
      
 83 
     | 
    
         
            +
            - test/dummy/config/environments/test.rb
         
     | 
| 
      
 84 
     | 
    
         
            +
            - test/dummy/config/initializers/backtrace_silencers.rb
         
     | 
| 
      
 85 
     | 
    
         
            +
            - test/dummy/config/initializers/inflections.rb
         
     | 
| 
      
 86 
     | 
    
         
            +
            - test/dummy/config/initializers/mime_types.rb
         
     | 
| 
      
 87 
     | 
    
         
            +
            - test/dummy/config/initializers/secret_token.rb
         
     | 
| 
      
 88 
     | 
    
         
            +
            - test/dummy/config/initializers/session_store.rb
         
     | 
| 
      
 89 
     | 
    
         
            +
            - test/dummy/config/initializers/wrap_parameters.rb
         
     | 
| 
      
 90 
     | 
    
         
            +
            - test/dummy/config/locales/en.yml
         
     | 
| 
      
 91 
     | 
    
         
            +
            - test/dummy/config/routes.rb
         
     | 
| 
      
 92 
     | 
    
         
            +
            - test/dummy/config.ru
         
     | 
| 
      
 93 
     | 
    
         
            +
            - test/dummy/db/development.sqlite3
         
     | 
| 
      
 94 
     | 
    
         
            +
            - test/dummy/db/migrate/20120908215532_create_models.rb
         
     | 
| 
      
 95 
     | 
    
         
            +
            - test/dummy/db/schema.rb
         
     | 
| 
      
 96 
     | 
    
         
            +
            - test/dummy/db/test.sqlite3
         
     | 
| 
      
 97 
     | 
    
         
            +
            - test/dummy/log/development.log
         
     | 
| 
      
 98 
     | 
    
         
            +
            - test/dummy/log/test.log
         
     | 
| 
      
 99 
     | 
    
         
            +
            - test/dummy/public/404.html
         
     | 
| 
      
 100 
     | 
    
         
            +
            - test/dummy/public/422.html
         
     | 
| 
      
 101 
     | 
    
         
            +
            - test/dummy/public/500.html
         
     | 
| 
      
 102 
     | 
    
         
            +
            - test/dummy/public/favicon.ico
         
     | 
| 
      
 103 
     | 
    
         
            +
            - test/dummy/Rakefile
         
     | 
| 
      
 104 
     | 
    
         
            +
            - test/dummy/README.rdoc
         
     | 
| 
      
 105 
     | 
    
         
            +
            - test/dummy/script/rails
         
     | 
| 
      
 106 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/CBF/7A0/sprockets%2Fc9192594b6d1b927590d37ebad844808
         
     | 
| 
      
 107 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
         
     | 
| 
      
 108 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
         
     | 
| 
      
 109 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
         
     | 
| 
      
 110 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D50/930/sprockets%2F277654ad498bbc928b88364ffcbad129
         
     | 
| 
      
 111 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
         
     | 
| 
      
 112 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DB2/700/sprockets%2Fa4f4b12a5cbea015faede527e4a04307
         
     | 
| 
      
 113 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DD5/C50/sprockets%2Fcdcdad84697d0b186a1de99f1950e5ab
         
     | 
| 
      
 114 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
         
     | 
| 
      
 115 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
         
     | 
| 
      
 116 
     | 
    
         
            +
            - test/helpers_empty_test.rb
         
     | 
| 
      
 117 
     | 
    
         
            +
            - test/helpers_first_test.rb
         
     | 
| 
      
 118 
     | 
    
         
            +
            - test/helpers_last_test.rb
         
     | 
| 
      
 119 
     | 
    
         
            +
            - test/helpers_middle_test.rb
         
     | 
| 
      
 120 
     | 
    
         
            +
            - test/rails_pagination_test.rb
         
     | 
| 
      
 121 
     | 
    
         
            +
            - test/test_helper.rb
         
     | 
| 
      
 122 
     | 
    
         
            +
            homepage: https://github.com/mattways/rails_pagination
         
     | 
| 
      
 123 
     | 
    
         
            +
            licenses: []
         
     | 
| 
      
 124 
     | 
    
         
            +
            post_install_message: 
         
     | 
| 
      
 125 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 126 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 127 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 128 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 129 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 130 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 131 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 132 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 133 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 134 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 135 
     | 
    
         
            +
              none: false
         
     | 
| 
      
 136 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 137 
     | 
    
         
            +
              - - ! '>='
         
     | 
| 
      
 138 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 139 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 140 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 141 
     | 
    
         
            +
            rubyforge_project: 
         
     | 
| 
      
 142 
     | 
    
         
            +
            rubygems_version: 1.8.23
         
     | 
| 
      
 143 
     | 
    
         
            +
            signing_key: 
         
     | 
| 
      
 144 
     | 
    
         
            +
            specification_version: 3
         
     | 
| 
      
 145 
     | 
    
         
            +
            summary: Minimalistic pagination alternative.
         
     | 
| 
      
 146 
     | 
    
         
            +
            test_files:
         
     | 
| 
      
 147 
     | 
    
         
            +
            - test/collection_empty_test.rb
         
     | 
| 
      
 148 
     | 
    
         
            +
            - test/collection_first_test.rb
         
     | 
| 
      
 149 
     | 
    
         
            +
            - test/collection_last_test.rb
         
     | 
| 
      
 150 
     | 
    
         
            +
            - test/collection_middle_test.rb
         
     | 
| 
      
 151 
     | 
    
         
            +
            - test/collection_padding_test.rb
         
     | 
| 
      
 152 
     | 
    
         
            +
            - test/dummy/app/assets/javascripts/application.js
         
     | 
| 
      
 153 
     | 
    
         
            +
            - test/dummy/app/assets/stylesheets/application.css
         
     | 
| 
      
 154 
     | 
    
         
            +
            - test/dummy/app/controllers/application_controller.rb
         
     | 
| 
      
 155 
     | 
    
         
            +
            - test/dummy/app/controllers/test_controller.rb
         
     | 
| 
      
 156 
     | 
    
         
            +
            - test/dummy/app/helpers/application_helper.rb
         
     | 
| 
      
 157 
     | 
    
         
            +
            - test/dummy/app/models/model.rb
         
     | 
| 
      
 158 
     | 
    
         
            +
            - test/dummy/app/views/layouts/application.html.erb
         
     | 
| 
      
 159 
     | 
    
         
            +
            - test/dummy/app/views/test/index.html.erb
         
     | 
| 
      
 160 
     | 
    
         
            +
            - test/dummy/config/application.rb
         
     | 
| 
      
 161 
     | 
    
         
            +
            - test/dummy/config/boot.rb
         
     | 
| 
      
 162 
     | 
    
         
            +
            - test/dummy/config/database.yml
         
     | 
| 
      
 163 
     | 
    
         
            +
            - test/dummy/config/environment.rb
         
     | 
| 
      
 164 
     | 
    
         
            +
            - test/dummy/config/environments/development.rb
         
     | 
| 
      
 165 
     | 
    
         
            +
            - test/dummy/config/environments/production.rb
         
     | 
| 
      
 166 
     | 
    
         
            +
            - test/dummy/config/environments/test.rb
         
     | 
| 
      
 167 
     | 
    
         
            +
            - test/dummy/config/initializers/backtrace_silencers.rb
         
     | 
| 
      
 168 
     | 
    
         
            +
            - test/dummy/config/initializers/inflections.rb
         
     | 
| 
      
 169 
     | 
    
         
            +
            - test/dummy/config/initializers/mime_types.rb
         
     | 
| 
      
 170 
     | 
    
         
            +
            - test/dummy/config/initializers/secret_token.rb
         
     | 
| 
      
 171 
     | 
    
         
            +
            - test/dummy/config/initializers/session_store.rb
         
     | 
| 
      
 172 
     | 
    
         
            +
            - test/dummy/config/initializers/wrap_parameters.rb
         
     | 
| 
      
 173 
     | 
    
         
            +
            - test/dummy/config/locales/en.yml
         
     | 
| 
      
 174 
     | 
    
         
            +
            - test/dummy/config/routes.rb
         
     | 
| 
      
 175 
     | 
    
         
            +
            - test/dummy/config.ru
         
     | 
| 
      
 176 
     | 
    
         
            +
            - test/dummy/db/development.sqlite3
         
     | 
| 
      
 177 
     | 
    
         
            +
            - test/dummy/db/migrate/20120908215532_create_models.rb
         
     | 
| 
      
 178 
     | 
    
         
            +
            - test/dummy/db/schema.rb
         
     | 
| 
      
 179 
     | 
    
         
            +
            - test/dummy/db/test.sqlite3
         
     | 
| 
      
 180 
     | 
    
         
            +
            - test/dummy/log/development.log
         
     | 
| 
      
 181 
     | 
    
         
            +
            - test/dummy/log/test.log
         
     | 
| 
      
 182 
     | 
    
         
            +
            - test/dummy/public/404.html
         
     | 
| 
      
 183 
     | 
    
         
            +
            - test/dummy/public/422.html
         
     | 
| 
      
 184 
     | 
    
         
            +
            - test/dummy/public/500.html
         
     | 
| 
      
 185 
     | 
    
         
            +
            - test/dummy/public/favicon.ico
         
     | 
| 
      
 186 
     | 
    
         
            +
            - test/dummy/Rakefile
         
     | 
| 
      
 187 
     | 
    
         
            +
            - test/dummy/README.rdoc
         
     | 
| 
      
 188 
     | 
    
         
            +
            - test/dummy/script/rails
         
     | 
| 
      
 189 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/CBF/7A0/sprockets%2Fc9192594b6d1b927590d37ebad844808
         
     | 
| 
      
 190 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953
         
     | 
| 
      
 191 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
         
     | 
| 
      
 192 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655
         
     | 
| 
      
 193 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D50/930/sprockets%2F277654ad498bbc928b88364ffcbad129
         
     | 
| 
      
 194 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6
         
     | 
| 
      
 195 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DB2/700/sprockets%2Fa4f4b12a5cbea015faede527e4a04307
         
     | 
| 
      
 196 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DD5/C50/sprockets%2Fcdcdad84697d0b186a1de99f1950e5ab
         
     | 
| 
      
 197 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994
         
     | 
| 
      
 198 
     | 
    
         
            +
            - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
         
     | 
| 
      
 199 
     | 
    
         
            +
            - test/helpers_empty_test.rb
         
     | 
| 
      
 200 
     | 
    
         
            +
            - test/helpers_first_test.rb
         
     | 
| 
      
 201 
     | 
    
         
            +
            - test/helpers_last_test.rb
         
     | 
| 
      
 202 
     | 
    
         
            +
            - test/helpers_middle_test.rb
         
     | 
| 
      
 203 
     | 
    
         
            +
            - test/rails_pagination_test.rb
         
     | 
| 
      
 204 
     | 
    
         
            +
            - test/test_helper.rb
         
     |