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

Version Path
railscart-0.0.1 starter-app/vendor/plugins/railscart/test/functional/application_controller_test.rb
railscart-0.0.2 starter_app/vendor/plugins/railscart/test/functional/application_controller_test.rb
railscart-0.0.4 starter_app/vendor/plugins/railscart/test/functional/application_controller_test.rb
railscart-0.0.3 starter_app/vendor/plugins/railscart/test/functional/application_controller_test.rb
spree-0.0.6 starter-app/vendor/plugins/spree/test/functional/application_controller_test.rb
spree-0.0.5 starter-app/vendor/plugins/spree/test/functional/application_controller_test.rb
spree-0.0.7 starter-app/vendor/plugins/spree/test/functional/application_controller_test.rb
spree-0.0.8 starter-app/vendor/plugins/spree/test/functional/application_controller_test.rb