stop double loading, dont start drb server in tests
[god.git] / test / test_god.rb
blob6e62a4d7801e598fe3e231e8888ed43195283593
1 require File.dirname(__FILE__) + '/helper'
3 class TestGod < Test::Unit::TestCase
4   def test_should_create_new_meddle
5     Meddle.expects(:new).with(:port => 1).returns(mock(:monitor => true))
6     God.meddle(:port => 1) {}
7   end
9   def test_should_start_monitoring
10     Meddle.any_instance.expects(:monitor)
11     God.meddle {}
12   end
13 end