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

Version Path
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/ruby-prof-0.15.1/test/enumerable_test.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/ruby-prof-0.15.1/test/enumerable_test.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/ruby-prof-0.15.1/test/enumerable_test.rb
ruby-prof-0.15.2 test/enumerable_test.rb
ruby-prof-0.15.1 test/enumerable_test.rb
ruby-prof-0.15.0 test/enumerable_test.rb
ruby-prof-0.14.2 test/enumerable_test.rb
ruby-prof-0.14.1 test/enumerable_test.rb
ruby-prof-0.14.0 test/enumerable_test.rb
ruby-prof-0.13.1 test/enumerable_test.rb
ruby-prof-0.13.0 test/enumerable_test.rb
ruby-prof-0.12.2 test/enumerable_test.rb
ruby-prof-0.12.1-x86-mingw32 test/enumerable_test.rb
ruby-prof-0.12.1 test/enumerable_test.rb
ruby-prof-0.11.3 test/enumerable_test.rb
ruby-prof-0.11.2-x86-mingw32 test/enumerable_test.rb
ruby-prof-0.11.2 test/enumerable_test.rb
ruby-prof-0.11.0.rc3-x86-mingw32 test/enumerable_test.rb
ruby-prof-0.11.0.rc3 test/enumerable_test.rb
ruby-prof-0.11.0.rc2-x86-mingw32 test/enumerable_test.rb