mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import psych-3.0.0.beta1 from ruby/psych.
* Removed deprecated code. * Removed code related syck gem. * Fixed typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4389ba641f
commit
6d77e28763
20 changed files with 52 additions and 398 deletions
|
|
@ -121,19 +121,6 @@ module Psych
|
|||
assert_equal 2, w.bar
|
||||
end
|
||||
|
||||
def test_to_yaml_properties
|
||||
class << @wups
|
||||
def to_yaml_properties
|
||||
[:@foo]
|
||||
end
|
||||
end
|
||||
|
||||
w = Psych.load(Psych.dump(@wups))
|
||||
assert_equal @wups, w
|
||||
assert_equal 1, w.foo
|
||||
assert_nil w.bar
|
||||
end
|
||||
|
||||
def test_psych_syntax_error
|
||||
Tempfile.create(['parsefile', 'yml']) do |t|
|
||||
t.binmode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue