Sha256: 6a0c792243d6c7d3696393ed05dfb9d8f6214c9535089798e1a68af8be666000

Contents?: true

Size: 437 Bytes

Versions: 2

Compression:

Stored size: 437 Bytes

Contents

require "spec_helper"

module Healthety
  describe Healthety do
    it "should start" do
      $stdout = StringIO.new
      Thread.any_instance.stubs(:join)
      UDPSocket.any_instance.stubs(:send)

      expect do
        Healthety.workers do
          server "127.0.0.1"
          port 8124

          worker :test do
            interval 0.5
            value rand(10)
          end
        end
      end.to be_true
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
healthety-0.0.3 spec/unit/healthety_spec.rb
healthety-0.0.2 spec/unit/healthety_spec.rb