Sha256: 67250ca288d0950d940082933929861887733fff0f1e8ab4e2aed45e54c29d78
Contents?: true
Size: 454 Bytes
Versions: 2
Compression:
Stored size: 454 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.values.first 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ruby-prof-0.11.0.rc1-x86-mingw32 | test/no_method_class_test.rb |
ruby-prof-0.11.0.rc1 | test/no_method_class_test.rb |