[ruby-cvs:74135] eregon:r67031 (trunk): Fix specs for yield in singleton class being deprecated

eregon at ruby-lang.org eregon at ruby-lang.org
Fri Feb 8 01:40:27 JST 2019


eregon	2019-02-08 01:40:27 +0900 (Fri, 08 Feb 2019)

  New Revision: 67031

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=67031

  Log:
    Fix specs for yield in singleton class being deprecated
    
    * Use eval to trigger warning only when the method is called.
    * Suppress warnings and clarify this will be removed in 3.0.

  Modified files:
    trunk/spec/ruby/fixtures/class.rb
    trunk/spec/ruby/language/class_spec.rb


More information about the ruby-cvs mailing list