class IntegrationFileUploadTest
Public Class Methods
call(env)
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 1099 def self.call(env) routes.call(env) end
fixture_path()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 1107 def self.fixture_path File.expand_path("../fixtures/multipart", __dir__) end
routes()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 1095 def self.routes @routes ||= ActionDispatch::Routing::RouteSet.new end
Public Instance Methods
app()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 1103 def app self.class end
test_fixture_file_upload()
click to toggle source
# File actionpack/test/controller/integration_test.rb, line 1115 def test_fixture_file_upload post "/test_file_upload", params: { file: fixture_file_upload("/ruby_on_quails.jpg", "image/jpg") } assert_equal "45142", @response.body end