Sha256: 49ec747b580be5510b419716ecfa6ac68e2932479c64f62298734c784a20729a

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 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.expects(:get).returns(stub(:join => nil)).times(2)
    
    God.meddle(:port => 1) {}
  end

  def test_should_start_monitoring
    Meddle.any_instance.expects(:monitor)
    Timer.expects(:get).returns(stub(:join => nil)).times(2)
    God.meddle {}
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
god-0.2.0 test/test_god.rb