Sha256: de6e479110ce37798c07d27b90e4897231ec2e199b0af4fff49d38090794cfb3
Contents?: true
Size: 523 Bytes
Versions: 7
Compression:
Stored size: 523 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/test_helper') class MethodInvokationTest < Test::Unit::TestCase include RubyProf::Test class Test def do_something; end def test do_something end do_something_method = instance_method(:do_something) define_method :test_with_method_object do do_something_method.bind(self).call end end def setup @obj = Test.new end def test_method_invocation @obj.test @obj.test_with_method_object end end
Version data entries
7 entries across 7 versions & 1 rubygems