Permalink
Browse files

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...
1 parent 8935209 commit 3f496c66384160ba8eedd8f0e04aca4c9161aedb @technoweenie technoweenie committed Mar 27, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_process.rb
View
2 actionpack/lib/action_controller/test_process.rb
@@ -436,7 +436,7 @@ def method_missing(selector, *args)
# post :change_avatar, :avatar => fixture_file_upload('/files/spongebob.png', 'image/png')
def fixture_file_upload(path, mime_type = nil)
ActionController::TestUploadedFile.new(
- Test::Unit::TestCase.respond_to?(:fixture_path) ? Test::Unit::TestCase + path : path,
+ Test::Unit::TestCase.respond_to?(:fixture_path) ? Test::Unit::TestCase.fixture_path + path : path,
mime_type
)
end

0 comments on commit 3f496c6

Please sign in to comment.