tests/usage_test.rb in cpu-0.0.2 vs tests/usage_test.rb in cpu-0.0.3
- old
+ new
@@ -3,10 +3,10 @@
require 'cpu'
module CPU
class UsageTest < Test::Unit::TestCase
def test_sum_usage
- @processor = CPU.sum_usage 0.1
+ @processor = CPU.sum_usage_processor 1
assert_kind_of Processor, @processor
assert_operator @processor.usage.percentage, :>, 0
end
end
end