Sha256: 9f09ff67286e52ce5cee4f0a29d61c1b90244e9d7b11121670ea2a1d0986b48c

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

require 'test/unit'
require 'mocha'
require 'cpu'

module CPU
  class UsageTest < Test::Unit::TestCase
    def test_sum_usage
      @processor = CPU.sum_usage 0.1
      assert_kind_of Processor, @processor
      assert_operator @processor.usage.percentage, :>, 0
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cpu-0.0.2 tests/usage_test.rb
cpu-0.0.1 tests/usage_test.rb
cpu-0.0.0 tests/usage_test.rb