Sha256: 14c96fe0313b34979b0e9beb9766f212edbea2c89275635edd7488245b21d784
Contents?: true
Size: 526 Bytes
Versions: 5
Compression:
Stored size: 526 Bytes
Contents
# :nodoc: all require "test/unit" require "nitro/server/cookie" require "nitro/server/request" include N class TC_N2_Web_Server_RequestPart < Test::Unit::TestCase # :nodoc: all # :nodoc: all def setup end def teardown end def test_filename part = RequestPart.new("/home/gmosx/files/pic.gif", "tmp/1232132.0", nil) assert_equal("pic.gif", part.filename) # bug: handle \ as separator part = RequestPart.new('C:\gmosx\files\pic.gif', "tmp/1232132.0", nil) assert_equal("pic.gif", part.filename) end end
Version data entries
5 entries across 5 versions & 1 rubygems