Sha256: 976a0b7c3b67d5226329092d5de5f7d3b9d82c37cbce4893376ff2c91d18c2d6
Contents?: true
Size: 377 Bytes
Versions: 21
Compression:
Stored size: 377 Bytes
Contents
#!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) # -- Test for bug # http://github.com/rdp/ruby-prof/issues#issue/12 class EnumerableTest < Test::Unit::TestCase def test_enumerable result = RubyProf.profile do 3.times { [1,2,3].any? {|n| n} } end assert_equal(result.threads.first.methods.length, 4) end end
Version data entries
21 entries across 19 versions & 2 rubygems