Sha256: 3ccfabf642aeb9c520de3a007121b92182224de9dd176d141388bc896158317b

Contents?: true

Size: 588 Bytes

Versions: 65

Compression:

Stored size: 588 Bytes

Contents

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

class TestSystemPortablePoller < Test::Unit::TestCase
  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

65 entries across 65 versions & 22 rubygems

Version Path
mojombo-god-0.7.11 test/test_system_portable_poller.rb
mojombo-god-0.7.12 test/test_system_portable_poller.rb
mojombo-god-0.7.13 test/test_system_portable_poller.rb
mojombo-god-0.7.14 test/test_system_portable_poller.rb
mojombo-god-0.7.15 test/test_system_portable_poller.rb
mojombo-god-0.7.16 test/test_system_portable_poller.rb
mojombo-god-0.7.20 test/test_system_portable_poller.rb
mojombo-god-0.7.7 test/test_system_portable_poller.rb
mojombo-god-0.7.9 test/test_system_portable_poller.rb
obitum-god-0.7.14.1 test/test_system_portable_poller.rb
obitum-god-0.7.14 test/test_system_portable_poller.rb
pjhyett-god-0.7.12 test/test_system_portable_poller.rb
relevance-god-0.7.12.1 test/test_system_portable_poller.rb
relevance-god-0.7.12 test/test_system_portable_poller.rb
saimonmoore-god-0.7.9 test/test_system_portable_poller.rb
samhendley-god-0.7.13 test/test_system_portable_poller.rb
strobemonkey-god-0.7.13 test/test_system_portable_poller.rb
firenxis-god-0.11.0 test/test_system_portable_poller.rb
god-0.11.0 test/test_system_portable_poller.rb
god-0.10.1 test/test_system_portable_poller.rb