~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to test/ruby/test_eval.rb

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20070904160117-68anapnflh5c9kgb
Tags: upstream-1.9.0+20070830
ImportĀ upstreamĀ versionĀ 1.9.0+20070830

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
      obj.class.class_variable_set :@@cvar, 13
125
125
          # Use same value with env. See also test_instance_variable_cvar.
126
126
      obj.class.const_set :Const, 15 unless obj.class.const_defined?(:Const)
127
 
      funcall mid, obj
 
127
      send! mid, obj
128
128
    end
129
129
  end
130
130
 
364
364
    assert_nothing_raised {
365
365
      def temporally_method_for_test_eval_and_define_method(&block)
366
366
        lambda {
367
 
          class << Object.new; self end.funcall(:define_method, :zzz, &block)
 
367
          class << Object.new; self end.send!(:define_method, :zzz, &block)
368
368
        }
369
369
      end
370
370
      v = eval("temporally_method_for_test_eval_and_define_method {}")