Sha256: 6bf2da8e6f4b5102464bf5a87352e2fc8dbf399cb0805689e6ad21387dcf7c6c

Contents?: true

Size: 357 Bytes

Versions: 4

Compression:

Stored size: 357 Bytes

Contents

require "spec_helper"

module Healthety
  describe Transmission do
    it "should send UDP packets" do
      $stdout = StringIO.new
      transmission = Transmission.new("127.0.0.1", 41234)

      transmission.instance_variable_get(:@socket).stubs(:send)
      transmission.expects(:send).at_least_once

      transmission.send("test", 5)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
healthety-0.0.7 spec/unit/transmission_spec.rb
healthety-0.0.6 spec/unit/transmission_spec.rb
healthety-0.0.5 spec/unit/transmission_spec.rb
healthety-0.0.4 spec/unit/transmission_spec.rb