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