Sha256: 25cbed68005049ffd694c4f23db0c28420fda750abaf8ea626780cedd4f63512
Contents?: true
Size: 1.4 KB
Versions: 4
Compression:
Stored size: 1.4 KB
Contents
require 'test_helper' class PeopleControllerTest < ActionController::TestCase def test_action get :list assert_response :success get :list, format: :csv assert_response :success get :list, format: :ods assert_response :success end test 'parameters' do get :list, 'people-id' => 10 assert_response :success get :list, page: 0 assert_response :success get :list, page: 5, per_page: 25 assert_response :success get :list, page: 50, per_page: 25 assert_response :success get :list, page: 500, per_page: 25 assert_response :success end end # # module WithinController # include AppMockHelper # # mock_app # module MyTestingApp # class Application < Rails::Application # end # end # class PeopleController < ActionController::Base # layout nil # include ActiveList::ActionController # list # def index # render :inline => "<h1></h1><%=list-%>" # end # end # class PeopleControllerTest < ActionController::TestCase # Test::Unit::TestCase # def setup # @routes = ActionDispatch::Routing::RouteSet.new # @routes.draw do # resources :people do # get :list, :on => :collection # end # resources :contacts # end # end # def test_action # get :list # # raise @response # # assert _response :success # end # end # # end
Version data entries
4 entries across 4 versions & 1 rubygems