test/measure_memory_test.rb in ruby-prof-0.15.2 vs test/measure_memory_test.rb in ruby-prof-0.15.3

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby # encoding: UTF-8 require File.expand_path('../test_helper', __FILE__) -class MeasureMemoryTest < Test::Unit::TestCase +class MeasureMemoryTest < TestCase include MemoryTestHelper def test_memory_mode RubyProf::measure_mode = RubyProf::MEMORY assert_equal(RubyProf::MEMORY, RubyProf::measure_mode) @@ -23,9 +23,9 @@ u = RubyProf.measure_memory assert(u > t, [t, u].inspect) RubyProf::measure_mode = RubyProf::MEMORY total = memory_test_helper assert(total > 0, 'Should measure more than zero kilobytes of memory usage') - assert_not_equal(0, total % 1, 'Should not truncate fractional kilobyte measurements') + refute_equal(0, total % 1, 'Should not truncate fractional kilobyte measurements') end end end