Sha256: 91dc8ed7baf5a8e33b67a1ce1bf9b448ecca87fe7b3e936ac66e9adc0f4fbd40
Contents?: true
Size: 449 Bytes
Versions: 2
Compression:
Stored size: 449 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 != 'Kernel#sleep' raise(RuntimeError, "Wrong method name. Expected: Global#[No method]. Actual: #{global_method.full_name}") end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ruby-prof-0.17.0 | test/no_method_class_test.rb |
airbnb-ruby-prof-0.0.1 | test/no_method_class_test.rb |