test/test_helper.rb in paginate-responder-1.1.1 vs test/test_helper.rb in paginate-responder-1.2.0

- old
+ new

@@ -6,11 +6,12 @@ # Configure Rails ENV["RAILS_ENV"] = "test" require 'active_support' require 'action_controller' -require 'will_paginate/array' +require 'minitest/reporters' +MiniTest::Reporters.use! require 'paginate-responder' Responders::Routes = ActionDispatch::Routing::RouteSet.new Responders::Routes.draw do @@ -21,19 +22,19 @@ setup do @routes = Responders::Routes end end -class PaginationResponder < ActionController::Responder +class TestResponder < ActionController::Responder include Responders::PaginateResponder end class PaginateController < ActionController::Base + attr_accessor :resource include Responders::Routes.url_helpers - - self.responder = PaginationResponder + self.responder = TestResponder respond_to :json def index - respond_with ('AA'..'zz').to_a + respond_with resource end end