Sha256: 731a8601d79c441d6077f256494c8ad6e31d4d3cdecc7a90e3c21cfc419915c9
Contents?: true
Size: 828 Bytes
Versions: 8
Compression:
Stored size: 828 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' require 'application' # Re-raise errors caught by the controller. class ApplicationController; def rescue_action(e) raise e end; end # open up protected methods for testing #class ApplicationController # public :login_or_anonymous #end class ApplicationControllerTest < Test::Unit::TestCase def setup @controller = ApplicationController.new @request = ActionController::TestRequest.new @response = ActionController::TestResponse.new end def test_truth assert true end #def test_login_or_anonymous #@controller.request = @request #@controller.session = {} #@controller.response = @response #assert @controller.login_or_anonymous, "should be anonymously authenticated" #TODO - add tests for other scenarios #end end
Version data entries
8 entries across 8 versions & 2 rubygems