Sha256: bae3ac63314c16a971880d2735e4aed196cf91b9ef5fe9efac1f3dec34507433
Contents?: true
Size: 464 Bytes
Versions: 26
Compression:
Stored size: 464 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
26 entries across 26 versions & 2 rubygems