Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions test/psych/test_string.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,11 @@ def test_empty_character_subclass
end

def test_subclass_with_attributes
y = Psych.load Psych.dump Y.new.tap {|y| y.val = 1}
assert_equal Y, y.class
assert_equal 1, y.val
y = Y.new.tap {|y| y.val = 1}
desarialized_y = Psych.load Psych.dump y
assert_equal Y, desarialized_y.class
assert_equal 1, desarialized_y.val
assert_equal desarialized_y.encoding, y.encoding
end

def test_string_with_base_60
Expand Down