Sha256: af36d54bbae9129cbc58ccca750cb2d286deca917d347181b9e26c689940ca17
Contents?: true
Size: 516 Bytes
Versions: 2
Compression:
Stored size: 516 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe SPNet::SignalOutPort do before :each do @out_port = SPNet::SignalOutPort.new @in_port = SPNet::SignalInPort.new end describe '#send_values' do it 'should enqueue the values on the linked input port' do @out_port.set_link Link.new(:to => @in_port, :from => @out_port) @in_port.queue.should be_empty @out_port.send_values [1,2,3,4] @in_port.queue.should eq([1,2,3,4]) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spnet-0.1.6 | spec/ports/signal_out_port_spec.rb |
spnet-0.1.5 | spec/ports/signal_out_port_spec.rb |