tests/msr_test.rb in cpu-0.0.4 vs tests/msr_test.rb in cpu-0.0.6

- old
+ new

@@ -1,10 +1,10 @@ -require 'test/unit' +require 'test_helper' require 'cpu' module CPU - class MSRTest < Test::Unit::TestCase + class MSRTest < Minitest::Test def setup @cpu0, @cpu1 = CPU.to_a end def test_loaded @@ -22,10 +22,10 @@ assert_operator @cpu0.temperature, '>', 0 assert_operator @cpu1.temperature, '>', 0 end def test_wrong_processor_id - assert_raise(InvalidProcessorIdError) do + assert_raises(InvalidProcessorIdError) do CPU::MSR.new(CPU.num_processors) end end end end