From efff453148b4bd2d35d91a3d8344a7bad56da7c3 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Sun, 30 Jul 2006 16:16:46 +0000 Subject: 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 --- actionpack/lib/action_controller/test_process.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_controller/test_process.rb') 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) -- cgit v1.2.3