Sha256: 2eccf32ecc51fe201789194fc80255bff563c6ec576e6a501bd74345cb5c085a

Contents?: true

Size: 455 Bytes

Versions: 32

Compression:

Stored size: 455 Bytes

Contents

#!/usr/bin/env ruby
# encoding: UTF-8

require File.expand_path('../test_helper', __FILE__)

# Make sure this works with no class or method
result = RubyProf.profile do
  sleep 1
end

methods = result.threads.first.methods
global_method = methods.sort_by {|method| method.full_name}.first
if global_method.full_name != 'Global#[No method]'
  raise(RuntimeError, "Wrong method name.  Expected: Global#[No method].  Actual: #{global_method.full_name}")
end

Version data entries

32 entries across 30 versions & 3 rubygems

Version Path
ruby-prof-0.16.2 test/no_method_class_test.rb
ruby-prof-0.16.1 test/no_method_class_test.rb
ruby-prof-0.16.0 test/no_method_class_test.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/ruby-prof-0.15.9/test/no_method_class_test.rb
honeybadger-2.4.0 vendor/gems/ruby/2.1.0/gems/ruby-prof-0.15.1/test/no_method_class_test.rb
honeybadger-2.4.0 vendor/gems/ruby/2.2.0/gems/ruby-prof-0.15.1/test/no_method_class_test.rb
honeybadger-2.4.0 vendor/gems/ruby/1.9.1/gems/ruby-prof-0.15.1/test/no_method_class_test.rb
ruby-prof-0.15.9 test/no_method_class_test.rb
ruby-prof-0.15.8 test/no_method_class_test.rb
ruby-prof-0.15.7 test/no_method_class_test.rb
ruby-prof-0.15.6 test/no_method_class_test.rb
ruby-prof-0.15.5 test/no_method_class_test.rb
ruby-prof-0.15.4 test/no_method_class_test.rb
ruby-prof-0.15.3 test/no_method_class_test.rb
ruby-prof-0.15.2 test/no_method_class_test.rb
ruby-prof-0.15.1 test/no_method_class_test.rb
ruby-prof-0.15.0 test/no_method_class_test.rb
ruby-prof-0.14.2 test/no_method_class_test.rb
ruby-prof-0.14.1 test/no_method_class_test.rb
ruby-prof-0.14.0 test/no_method_class_test.rb