test/basic_test.rb in ruby-prof-0.7.9 vs test/basic_test.rb in ruby-prof-0.7.10
- old
+ new
@@ -135,11 +135,11 @@
# C1#hello
# Kernel#sleep
methods = result.threads.values.first.sort.reverse
assert_equal(6, methods.length)
- names = methods.map &:full_name
+ names = methods.map(&:full_name)
assert_equal('BasicTest#test_instance_methods', names[0])
assert_equal('C1#hello', names[1])
assert_equal('Kernel#sleep', names[2])
assert_equal('Class#new', names[3])
# order can differ
@@ -216,10 +216,10 @@
# M1#hello
# Kernel#sleep
methods = result.threads.values.first.sort.reverse
assert_equal(6, methods.length)
- names = methods.map &:full_name
+ names = methods.map(&:full_name)
assert_equal('BasicTest#test_module_instance_methods', names[0])
assert_equal('M1#hello', names[1])
assert_equal('Kernel#sleep', names[2])
assert_equal('Class#new', names[3])
assert(names.include?("<Class::#{PARENT}>#allocate"))