| Class | OtherControllerTest |
| In: |
test/functional/other_controller_test.rb
|
| Parent: | Test::Unit::TestCase |
# 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
# 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