Sha256: ed7a19a2329d72ac00d18d7bb4168878a624a7fdec6dea75ff54285b554362e1
Contents?: true
Size: 404 Bytes
Versions: 2
Compression:
Stored size: 404 Bytes
Contents
# -*- coding: utf-8 -*- require 'test_helper' class CsvRails::ArrayTest < ActiveSupport::TestCase test ".to_csv with header option" do header = ['foo', 'bar'] assert_equal header.join(','), [].to_csv(:header => header).chomp end test ".to_csv accept encoding" do name = "名前" assert_equal name.encode('SJIS'), [].to_csv(:header => [name], :encoding => 'SJIS').chomp end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
csv_rails-0.5.1 | test/csv_rails/array_test.rb |
csv_rails-0.5.0 | test/csv_rails/array_test.rb |