Sha256: e44a7d8593e64c39a5efd64c7cde2ede729b76de6ec4f3f740ea727c6dd6fd6c

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

require 'kintama'
require 'pry'

context "Logger module" do
  setup do
    require_relative '../lib/socketlogger'
  end

  it "should publish to a socket and return a number equal to length of message + length of topic + 1" do
    message = 'sike!'
    topic = 'logging'
    sent = Logger::log message
    characters_sent = message.length + topic.length + 1
    assert_equal characters_sent, sent
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
socketlogger-0.0.1 tests/socketlogger.rb