Sha256: 7ea635696335b31190583928bb2a49404369c8b36680d1299793a2cd26993f40

Contents?: true

Size: 473 Bytes

Versions: 12

Compression:

Stored size: 473 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.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 != 'Kernel#sleep'
  raise(RuntimeError, "Wrong method name.  Expected: Global#[No method].  Actual: #{global_method.full_name}")
end

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
ruby-prof-1.7.1-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.7.1 test/no_method_class_test.rb
ruby-prof-1.7.0-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.7.0 test/no_method_class_test.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/no_method_class_test.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/ruby-prof-1.6.3/test/no_method_class_test.rb
ruby-prof-1.6.3-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.6.3 test/no_method_class_test.rb
ruby-prof-1.6.2-x64-mingw-ucrt test/no_method_class_test.rb
ruby-prof-1.6.2 test/no_method_class_test.rb
ruby-prof-1.6.1 test/no_method_class_test.rb
ruby-prof-1.6.1-x64-mingw-ucrt test/no_method_class_test.rb