Sha256: 62804ba1e69a8a3896b6f94f9a567a1bb5d23b50658b37b2066f953b63c20598
Contents?: true
Size: 1.28 KB
Versions: 59
Compression:
Stored size: 1.28 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/processors/processor' module Cosmos describe Processor do describe "initialize" do it "stores an optional value_type" do a = Processor.new(:RAW) expect(a.value_type).to eql :RAW b = Processor.new expect(b.value_type).to eql :CONVERTED end end describe "call" do it "raises an exception" do expect { Processor.new.call(0, 0) }.to raise_error("call method must be defined by subclass") end end describe "to_s" do it "returns a String" do expect(Processor.new.to_s).to eql "Processor" end end describe "name" do it "has an assignable name" do a = Processor.new a.name = "Test" expect(a.name).to eql "TEST" end end describe "reset" do it "has a reset method" do a = Processor.new expect { a.reset }.not_to raise_error end end end end
Version data entries
59 entries across 59 versions & 1 rubygems