Sha256: a57f49ca3275c39d88916c7823b10701a15489c98c082ca50d3445ceb0191a6c
Contents?: true
Size: 1.04 KB
Versions: 4
Compression:
Stored size: 1.04 KB
Contents
$:.unshift File.join(File.dirname(__FILE__), "../..", "lib") require 'rets4r/client/metadataindex' require 'rets4r/client/transaction' require 'rets4r/client/metadata' require 'test/unit' module RETS4R class TestMetadataIndex < Test::Unit::TestCase def test_truth end =begin def setup File.open('tests/rets/data/metadata.marshal') do |file| @trans = Marshal.load(file) end @index = MetadataIndex.new(@trans.data) end # Ensure that our lookup and search functions, although different, will return the same data # for the same criteria. def test_lookup_search assert_equal("Club House", @index.lookup('METADATA-LOOKUP_TYPE', 'Property', 'HOAMENITIS_Lkp_2')[0]['LongValue']) puts @index.search('METADATA-LOOKUP_TYPE', {'Resource' => 'Property', 'Lookup' => 'HOAMENITIS_Lkp_2'}).inspect assert_equal( \ @index.lookup('METADATA-LOOKUP_TYPE', 'Property', 'HOAMENITIS_Lkp_2'), \ @index.search('METADATA-LOOKUP_TYPE', {'Resource' => 'Property', 'Lookup' => 'HOAMENITIS_Lkp_2'}).inspect \ ) end =end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rets4r-0.8.2 | test/client/tc_metadataindex.rb |
rets4r-0.8.4 | test/client/tc_metadataindex.rb |
rets4r-0.8.5 | test/client/tc_metadataindex.rb |
rets4r-0.8.3 | test/client/tc_metadataindex.rb |