Sha256: 887d02d03066cfa683aafcb4016cad74e0ca14af662bac709054a49f10d9f962
Contents?: true
Size: 1.17 KB
Versions: 59
Compression:
Stored size: 1.17 KB
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/conversions/received_count_conversion' require 'cosmos/packets/packet' module Cosmos describe ReceivedCountConversion do describe "initialize" do it "initializes converted_type and converted_bit_size" do gc = ReceivedCountConversion.new() expect(gc.converted_type).to eql :UINT expect(gc.converted_bit_size).to eql 32 end end describe "call" do it "calls the code to eval and return the result" do gc = ReceivedCountConversion.new() packet = Packet.new("TGT","PKT") packet.received_count = 100 expect(gc.call(nil,packet,nil)).to eql 100 end end describe "to_s" do it "returns the class" do expect(ReceivedCountConversion.new().to_s).to eql "ReceivedCountConversion" end end end end
Version data entries
59 entries across 59 versions & 1 rubygems