Sha256: 5d72304ff29c70e2d85189581e0e129984dfd31a0f22364403793613025c8d1e
Contents?: true
Size: 467 Bytes
Versions: 2
Compression:
Stored size: 467 Bytes
Contents
require 'test/unit' require 'webget_ruby_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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webget_ruby_ramp-1.7.3 | test/webget_ruby_ramp/csv_test.rb |
webget_ruby_ramp-1.7.2 | test/webget_ruby_ramp/csv_test.rb |