aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2006-07-30 16:16:46 +0000
committerRick Olson <technoweenie@gmail.com>2006-07-30 16:16:46 +0000
commitefff453148b4bd2d35d91a3d8344a7bad56da7c3 (patch)
tree2ba8a4057ed8d137626ba1184830638347bff5e8
parentd02c07dbb990753d339e5c49e8ccddfa0a052c6b (diff)
downloadrails-efff453148b4bd2d35d91a3d8344a7bad56da7c3.tar.gz
rails-efff453148b4bd2d35d91a3d8344a7bad56da7c3.tar.bz2
rails-efff453148b4bd2d35d91a3d8344a7bad56da7c3.zip
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
-rw-r--r--actionpack/lib/action_controller/test_process.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/test_process.rb b/actionpack/lib/action_controller/test_process.rb
index a3c456dd3d..2ae17c7adc 100644
--- a/actionpack/lib/action_controller/test_process.rb
+++ b/actionpack/lib/action_controller/test_process.rb
@@ -313,7 +313,7 @@ module ActionController #:nodoc:
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)