# File test/metacat_test.rb, line 131 def test_read_data_table file = File.open('tmp.data_table', 'w+') @metacat.read(@data_table_docid) do |buffer| file.write(buffer) end file.close assert_equal(File.size('tmp.data_table'), File.size(File.dirname(__FILE__)+'/example.data_table')) File.delete('tmp.data_table') end