forked from mojombo/god
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters