Permalink
Browse files

show missing file path on failed fixture_file_upload

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4631 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
technoweenie committed Jul 30, 2006
1 parent d02c07d commit efff453148b4bd2d35d91a3d8344a7bad56da7c3
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_controller/test_process.rb
@@ -313,7 +313,7 @@ class TestUploadedFile
attr_reader :content_type
def initialize(path, content_type = 'text/plain')
- raise "file does not exist" unless File.exist?(path)
+ raise "#{path} file does not exist" unless File.exist?(path)
@content_type = content_type
@original_filename = path.sub(/^.*#{File::SEPARATOR}([^#{File::SEPARATOR}]+)$/) { $1 }
@tempfile = Tempfile.new(@original_filename)

0 comments on commit efff453

Please sign in to comment.