Sha256: 6c50a59762e5b7df209eacfab9bd63f4dd6f5de9508a2a19af2fff66a7f29549
Contents?: true
Size: 682 Bytes
Versions: 44
Compression:
Stored size: 682 Bytes
Contents
require File.dirname(__FILE__) + '/../test_helper' class HeartbeatTest < Test::Unit::TestCase context "a heartbeat" do setup do setup_default_config @server = stub('server') @server.stubs(:daemons).returns([]) heartbeat_queue = stub('heartbeat queue') heartbeat_queue.stubs(:send_message) queue_provider = stub('queue provider') queue_provider.expects(:queue).with('heartbeat').returns(heartbeat_queue) RightAws::SqsGen2.stubs(:new).with( 'aki', 'sak', {:multi_thread => true} ).returns(queue_provider) end should "be initializable" do Refinery::Heartbeat.new(@server) end end end
Version data entries
44 entries across 44 versions & 2 rubygems