Sha256: bcd65c847910ff0413937aec30133eabe1f6a27ae6a60f2090f0d7dfac108303

Contents?: true

Size: 1.28 KB

Versions: 4

Compression:

Stored size: 1.28 KB

Contents

$:.unshift File.expand_path(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

#        FIXME: reenable MetadataIndex tests
#        def setup
#            File.open('test/data/1.5/metadata.xml') do |file|
#                @trans = Marshal.load(file)
#            end
#
#            @index = MetadataIndex.new(@trans.data)
#        end

#        FIXME: reenable test_lookup_search
#        # 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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
josephholsten-rets4r-1.1.16 test/test_metadataindex.rb
josephholsten-rets4r-1.1.15 test/test_metadataindex.rb
josephholsten-rets4r-1.1.14 test/test_metadataindex.rb
josephholsten-rets4r-1.1.13 test/test_metadataindex.rb