Class | OtherControllerTest
In: | test/functional/other_controller_test.rb
Parent: | Test::Unit::TestCase

### Methods

setup teardown test_about

### Public Instance methods

setup()

[Source]

        # File test/functional/other_controller_test.rb, line 24
    24:   def setup
    25:     logger.debug "Test Case: #{name}"
    26:     @controller = OtherController.new
    27:     @request    = ActionController::TestRequest.new
    28:     @response   = ActionController::TestResponse.new
    29:     #@oup_20060721 = create_oup_20060721
    30:     #@oup_20060728 = create_oup_20060728
    31:     #@oup_wiki = create_oup_wiki(@oup_20060721)
    32:     @andy = users(:andy) # admin
    33:     @george = users(:george) # central admin
    34:     @tony = users(:tony) # user
    35:     @cash = users(:cash)
    36:   end

teardown()

[Source]

        # File test/functional/other_controller_test.rb, line 38
    38:   def teardown
    39:     [ENV['EPFWIKI_SITES_PATH'], ENV['EPFWIKI_WIKIS_PATH']].each do |p|
    40:       FileUtils.rm_r(p) if File.exists?(p)
    41:       File.makedirs(p)
    42:     end
    43:   end

test_about()

Shows all users can access information about the application with other/about

[Source]

        # File test/functional/other_controller_test.rb, line 46
    46:   def test_about
    47:     get :about
    48:     assert_response :success
    49:   end

[Validate]