Sha256: 4207d8bcad8668e169a7605dd228b9caf5cadf64af39f41b9fc0eaa1818ed874

Contents?: true

Size: 1.03 KB

Versions: 2

Compression:

Stored size: 1.03 KB

Contents

require 'test_helper'

class PeopleControllerTest < ActionController::TestCase
  
  def test_action
    get :list
    assert_response :success

    get :list, :format => :csv
    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

2 entries across 2 versions & 1 rubygems

Version Path
active_list-6.0.1 test/people_controller_test.rb
active_list-6.0.0 test/people_controller_test.rb