summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-08 11:18:31 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-05-08 11:18:31 +0000
commitd9304e062a2c7cc937845f454c835bbc1717eca5 (patch)
tree6331ef282434d7f88484a981220c8ad4780a19d8
parent40af0a2cbf289a50c0c16060864765c528c8635a (diff)
downloadredmine-d9304e062a2c7cc937845f454c835bbc1717eca5.tar.gz
redmine-d9304e062a2c7cc937845f454c835bbc1717eca5.zip
Fixed ActionController::TestUploadedFile#respond_to? for failing tests.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9656 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/test_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 2b80c851e..72ac6ec70 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -483,3 +483,11 @@ end
# Simple module to "namespace" all of the API tests
module ApiTest
end
+
+module ActionController
+ class TestUploadedFile
+ def respond_to?(method_name)
+ @tempfile.respond_to?(method_name) || super
+ end
+ end
+end