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

Version Path
aeden-refinery-0.10.0 test/unit/heartbeat_test.rb
aeden-refinery-0.10.1 test/unit/heartbeat_test.rb
aeden-refinery-0.10.2 test/unit/heartbeat_test.rb
aeden-refinery-0.10.3 test/unit/heartbeat_test.rb
aeden-refinery-0.10.5 test/unit/heartbeat_test.rb
aeden-refinery-0.10.6 test/unit/heartbeat_test.rb
aeden-refinery-0.10.8 test/unit/heartbeat_test.rb
aeden-refinery-0.9.1 test/unit/heartbeat_test.rb
aeden-refinery-0.9.10 test/unit/heartbeat_test.rb
aeden-refinery-0.9.11 test/unit/heartbeat_test.rb
aeden-refinery-0.9.12 test/unit/heartbeat_test.rb
aeden-refinery-0.9.13 test/unit/heartbeat_test.rb
aeden-refinery-0.9.14 test/unit/heartbeat_test.rb
aeden-refinery-0.9.15 test/unit/heartbeat_test.rb
aeden-refinery-0.9.2 test/unit/heartbeat_test.rb
aeden-refinery-0.9.4 test/unit/heartbeat_test.rb
aeden-refinery-0.9.5 test/unit/heartbeat_test.rb
aeden-refinery-0.9.6 test/unit/heartbeat_test.rb
aeden-refinery-0.9.7 test/unit/heartbeat_test.rb
aeden-refinery-0.9.8 test/unit/heartbeat_test.rb