Skip to content
This repository
Browse code

add the TestCase.fixture_path when testing file uploads

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4058 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 3f496c66384160ba8eedd8f0e04aca4c9161aedb 1 parent 8935209
risk danger olson authored March 27, 2006
2  actionpack/lib/action_controller/test_process.rb
@@ -436,7 +436,7 @@ def method_missing(selector, *args)
436 436
     #   post :change_avatar, :avatar => fixture_file_upload('/files/spongebob.png', 'image/png')
437 437
     def fixture_file_upload(path, mime_type = nil)
438 438
       ActionController::TestUploadedFile.new(
439  
-        Test::Unit::TestCase.respond_to?(:fixture_path) ? Test::Unit::TestCase + path : path, 
  439
+        Test::Unit::TestCase.respond_to?(:fixture_path) ? Test::Unit::TestCase.fixture_path + path : path, 
440 440
         mime_type
441 441
       )
442 442
     end

0 notes on commit 3f496c6

Please sign in to comment.
Something went wrong with that request. Please try again.