Sha256: 77332b619085c4baa73e2e92f8f63063360ad970c39171049bf993111fde0d66
Contents?: true
Size: 976 Bytes
Versions: 59
Compression:
Stored size: 976 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'spec_helper' require 'cosmos/processors/processor' module Cosmos describe NewPacketLogProcessor do describe "initialize" do it "takes a packet log writer name" do a = NewPacketLogProcessor.new('MINE') expect(a.value_type).to eql :CONVERTED end end describe "call" do it "starts logging" do log_name = nil allow(CmdTlmServer).to receive_message_chain(:instance,:start_logging) do |name| log_name = name end a = NewPacketLogProcessor.new() a.call(nil, nil) expect(log_name).to eql('ALL') end end end end
Version data entries
59 entries across 59 versions & 1 rubygems