]> source.dussan.org Git - redmine.git/commitdiff
Fixed ActionController::TestUploadedFile#respond_to? for failing tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 May 2012 11:18:31 +0000 (11:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 8 May 2012 11:18:31 +0000 (11:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@9656 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index 2b80c851e85181d6ecfe16031bb7c76a031b1f69..72ac6ec70193e5ced09447a317112bc89ffeed9e 100644 (file)
@@ -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