Sha256: 22c8c4ca127d850770d48f9beb2f201d8dee1b9b5928df725899b14edd909751
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 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(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(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.15 | test/compact_nokogiri_test.rb |