diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-13 00:29:56 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-13 00:29:56 +0000 |
commit | 6e5aa36709e295e538ba542612a3d956e97e63fd (patch) | |
tree | 928e0260cd15dc0d817c4c6f5c9ec517dcdceb0b /test/psych | |
parent | c8a403ebc47759d2a18ac381e1af93c48248ac58 (diff) |
* ext/psych/lib/psych/core_ext.rb: Make Kernel#y private.
[ruby-core:38913]
* test/psych/test_yaml.rb: corresponding test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/psych')
-rw-r--r-- | test/psych/test_yaml.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb index 41bb377143..807c058d2e 100644 --- a/test/psych/test_yaml.rb +++ b/test/psych/test_yaml.rb @@ -3,6 +3,7 @@ # $Id$ # require 'psych/helper' +require 'ostruct' # [ruby-core:01946] module Psych_Tests @@ -14,6 +15,12 @@ class Psych_Unit_Tests < Psych::TestCase Psych.domain_types.clear end + def test_y_method + assert_raises(NoMethodError) do + OpenStruct.new.y 1 + end + end + def test_syck_compat time = Time.utc(2010, 10, 10) yaml = Psych.dump time |