tighten up Hub and add comments
[god.git] / test / test_registry.rb
blob1c15f4664f9a07e42772953325e40a744c9067f3
1 require File.dirname(__FILE__) + '/helper'
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