COMMIT Add specs for Marshal respond_to? behaviors. http://github.com/rubyspec/rubyspec/commit/f979fb9b13372811dfc5fb4519f1886363de0a6c =================================================================== +++ 20101208T043006 @@ 7649 @@ /var/lib/chkbuild/tmp/build/ruby-1.8-pth-o3//ruby/test/net/http/test_connection.rb:20:in `test_connection_refused_in_request' --------------- +2712 tests, 1351379 assertions, 3 failures, 0 errors make: *** [test-all] Error 1 exit 2 failed(test-all) @@ 15949 @@ - raises an Error when the IO-Object does not respond to #write - raises an ArgumentError when given more than three arguments - raises an Error when trying to dump an anonymous class/module +- invokes respond_to? for marshal_dump and _dump on user classes +- attempts to invoke marshal_dump if respond_to? :marshal_dump is true +- attempts to invoke _dump if respond_to? :_dump is true - raises a TypeError if _dump returns a non-string - dumps an Object - dumps an extended_object @@ 16033 @@ - loads a extended_struct having fields with same objects - loads a string having ivar with ref to self - loads an extended_user_hash with a parameter to initialize +- invokes respond_to? for marshal_load when the stream needs marshal_load +- invokes respond_to? for _load when the stream needs _load - loads a user-marshaled extended object - loads a user_object - loads a object @@ 37758 @@ Finished in seconds +3304 files, 13695 examples, expectations, 74 failures, 75 errors exit 1 failed(rubyspec) == end #