Sha256: 8ac525dd79636c45ad13882855141dd984ea2a19181e5b76b12ba406c8c2e732

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 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 41234

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
healthety-0.0.4 spec/unit/healthety_spec.rb