Sha256: ce544a5099d334e9736700fa13af007f9cbb5e7079912a93a4c7fab4f6b46b3e
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
require File.dirname(__FILE__) + '/helper' class TestGod < Test::Unit::TestCase def test_should_create_new_meddle Meddle.expects(:new).with(:port => 1).returns(mock(:monitor => true, :timer => stub(:join => nil))) God.meddle(:port => 1) {} end def test_should_start_monitoring Meddle.any_instance.expects(:monitor) Meddle.any_instance.expects(:timer).returns(stub(:join => nil)) God.meddle {} end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
god-0.1.0 | test/test_god.rb |