Sha256: b1500a9fee88d4aa9efd4fe7b4fcc8dc72e677749431114901aa3837134b7715

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cpu-0.0.4 tests/usage_test.rb
cpu-0.0.3 tests/usage_test.rb