Commits

Anonymous committed b70bd44

Fixed ActionController::TestUploadedFile#respond_to? for failing tests.

Comments (0)

Files changed (1)

test/test_helper.rb

 # 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