Sha256: 7a7f60c0cdcdea111ae0ee3b7fe2eee413b12bf413d3ef80c2b47f7edd1724e3
Contents?: true
Size: 462 Bytes
Versions: 8
Compression:
Stored size: 462 Bytes
Contents
require 'test/unit' require 'webget_ramp' class CSVTest < Test::Unit::TestCase def test_http_headers h=CSV.http_headers assert_equal('text/csv',h["Content-Type"]) assert_equal("attachment; filename=\"data.csv\"",h["Content-Disposition"]) end def test_http_headers_with_filename h=CSV.http_headers(:filename=>'foo') assert_equal('text/csv',h["Content-Type"]) assert_equal("attachment; filename=\"foo\"",h["Content-Disposition"]) end end
Version data entries
8 entries across 8 versions & 1 rubygems