Sha256: ce99fd5d8702d53f8d9921fc4559746dcd4246ea563ce6cef7e085c13d334ee9
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
$:.unshift File.expand_path(File.join(File.dirname(__FILE__), "..", "lib")) require 'test/unit' require 'rets4r' class CompactNokogiriTest < Test::Unit::TestCase def test_should_do_stuff file = File.expand_path(File.join('test', 'data', '1.5', 'search_compact.xml')) listings = RETS4R::Client::CompactNokogiriParser.new.parse_results(open(file)) assert_equal({"Third"=>"Datum3", "Second"=>"Datum2", "First"=>"Datum1"}, listings[0]) assert_equal({"Third"=>"Datum6", "Second"=>"Datum5", "First"=>"Datum4"}, listings[1]) end def test_should_handle_big_data file = File.expand_path(File.join('test', 'data', '1.5', 'bad_compact.xml')) listings = RETS4R::Client::CompactNokogiriParser.new.parse_results(open(file)) assert_equal 1, listings.length assert_equal 79, listings.first.keys.length end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
josephholsten-rets4r-1.1.16 | test/compact_nokogiri_test.rb |