Sha256: 3dbcaf3f2a2af30b93f59bed7e99cafd6f38d776507810fd74f7a67f951ccf91

Contents?: true

Size: 580 Bytes

Versions: 5

Compression:

Stored size: 580 Bytes

Contents

require File.dirname(__FILE__) + '/helper'

class TestSystemPortablePoller < Minitest::Test
  def setup
    pid = Process.pid
    @process = System::PortablePoller.new(pid)
  end

  def test_time_string_to_seconds
    assert_equal 0, @process.bypass.time_string_to_seconds('0:00:00')
    assert_equal 0, @process.bypass.time_string_to_seconds('0:00:55')
    assert_equal 27, @process.bypass.time_string_to_seconds('0:27:32')
    assert_equal 75, @process.bypass.time_string_to_seconds('1:15:13')
    assert_equal 735, @process.bypass.time_string_to_seconds('12:15:13')
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
resurrected_god-0.14.0 test/test_system_portable_poller.rb
mcproc-2016.2.20 test/test_system_portable_poller.rb
god-0.13.7 test/test_system_portable_poller.rb
god-0.13.6 test/test_system_portable_poller.rb
god-0.13.5 test/test_system_portable_poller.rb