Sha256: 190b346f4f97e5dbb9f1b92684ad3e8635f097734e431a2cbc6fd71b73cea3ca

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

require 'drbdump/test_case'

class TestDRbDumpMessage < DRbDump::TestCase

  def setup
    super

    drbdump

    @packet = packets(ARG_DUMP).first

    @m = DRbDump::Message.new @drbdump, @packet
  end

  def test_destination
    assert_equal '"druby://kault:57315"', @m.destination
  end

  def test_resolve_addresses
    @m.resolve_addresses

    assert_equal '"druby://kault:57317"', @m.source
    assert_equal '"druby://kault:57315"', @m.destination
  end

  def test_source
    assert_equal '"druby://kault:57317"', @m.source
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
drbdump-1.0 test/test_drbdump_message.rb