Sha256: b423d59d9041529def82565465078eb43279c76b138b7fd7aa8df398181a40f5
Contents?: true
Size: 747 Bytes
Versions: 3
Compression:
Stored size: 747 Bytes
Contents
require File.expand_path(__FILE__).sub(%r(/test/.*), '/test/test_helper.rb') require File.expand_path(__FILE__).sub(%r(.*/test/), '').sub(/test_(.*)\.rb/,'\1') class TestTsvPath < Test::Unit::TestCase def test_tsv_open_persist content =<<-'EOF' #Id ValueA ValueB OtherID row1 a|aa|aaa b Id1|Id2 row2 A B Id3 row2 a a id3 EOF tsv = nil TmpFile.with_file(content) do |filename| Path.setup(filename) tsv = filename.tsv persist: true, merge: true, type: :list, sep: /\s+/ assert_equal %w(ValueA ValueB OtherID), tsv.fields tsv = filename.tsv persist: true, merge: true, type: :list, sep: /\s+/ assert_equal %w(ValueA ValueB OtherID), tsv.fields end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
scout-gear-10.7.4 | test/scout/tsv/test_path.rb |
scout-gear-10.7.3 | test/scout/tsv/test_path.rb |
scout-gear-10.7.2 | test/scout/tsv/test_path.rb |