Sha256: 85e9bdc837f98e5524d69f5bbc412e1113ad9acd997746c39d280194bd03b548
Contents?: true
Size: 756 Bytes
Versions: 5
Compression:
Stored size: 756 Bytes
Contents
Test 'Activty' do should 'initialize with no args' do activity = nil assert_nothing_raised{ assert(activity = Gnip.activity.new) } end should 'transitively serialize to and from xml' do glob = File.join($test_data_dir, 'activity*.xml') Dir[glob].each do |activity_xml| expected_xml = IO.read(activity_xml) activity = nil assert_nothing_raised{ activity = Gnip.activity.from_xml(expected_xml) } assert activity actual_xml = nil assert_nothing_raised{ begin actual_xml = activity.to_xml xml_cmp!(expected_xml, actual_xml) rescue Object => e STDERR.puts "\n\n # activity_xml=#{ activity_xml }\n\n" raise end } end end end
Version data entries
5 entries across 5 versions & 2 rubygems
Version | Path |
---|---|
gnip-gnip-1.1.1 | test/unit/activity.rb |
gnip-0.4.2 | test/unit/activity.rb |
gnip-1.0.0 | test/unit/activity.rb |
gnip-1.1.1 | test/unit/activity.rb |
gnip-1.1.2 | test/unit/activity.rb |