Parcourir la source

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
tags/1.4.2
Jean-Philippe Lang il y a 12 ans
Parent
révision
d9304e062a
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 8
    0
      test/test_helper.rb

+ 8
- 0
test/test_helper.rb Voir le fichier

@@ -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

Chargement…
Annuler
Enregistrer