repo.or.cz
/
god.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
fix process#alive? to not raise on no such file
[god.git]
/
test
/
test_registry.rb
blob
1c15f4664f9a07e42772953325e40a744c9067f3
1
require File.dirname(__FILE__) + '/helper'
2
3
class TestRegistry < Test::Unit::TestCase
4
def setup
5
God.registry.reset
6
end
7
8
def test_add
9
foo = God::Process.new
10
foo.name = 'foo'
11
God.registry.add(foo)
12
assert_equal 1, God.registry.size
13
assert_equal foo, God.registry['foo']
14
end
15
end