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.13.1 test/no_method_class_test.rb
ruby-prof-0.13.0 test/no_method_class_test.rb
ruby-prof-0.12.2 test/no_method_class_test.rb
ruby-prof-0.12.1-x86-mingw32 test/no_method_class_test.rb
ruby-prof-0.12.1 test/no_method_class_test.rb
ruby-prof-0.11.3 test/no_method_class_test.rb
ruby-prof-0.11.2-x86-mingw32 test/no_method_class_test.rb
ruby-prof-0.11.2 test/no_method_class_test.rb
ruby-prof-0.11.0.rc3-x86-mingw32 test/no_method_class_test.rb
ruby-prof-0.11.0.rc3 test/no_method_class_test.rb
ruby-prof-0.11.0.rc2-x86-mingw32 test/no_method_class_test.rb
ruby-prof-0.11.0.rc2 test/no_method_class_test.rb