interop/test_interop.rb in avro-1.7.4 vs interop/test_interop.rb in avro-1.7.5

- old
+ new

@@ -21,10 +21,10 @@ class TestInterop < Test::Unit::TestCase HERE = File.expand_path(File.dirname(__FILE__)) SHARE = HERE + '/../../../share' SCHEMAS = SHARE + '/test/schemas' - Dir[HERE + '/../../../build/interop/data/*'].each do |fn| + Dir[HERE + '/../../../build/interop/data/*'].each do |fn| define_method("test_read_#{File.basename(fn, 'avro')}") do projection = Avro::Schema.parse(File.read(SCHEMAS+'/interop.avsc')) File.open(fn) do |f| r = Avro::DataFile::Reader.new(f, Avro::IO::DatumReader.new(projection))