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