Sha256: e3b051a1f166df7052b084e1f3f5dddbdeef099f6e1dc8409e8e1132fa6d7396
Contents?: true
Size: 524 Bytes
Versions: 3
Compression:
Stored size: 524 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe SPNet::MessageInPort do describe '#recv_message' do before :all do processor = lambda do |message| return message end @port = SPNet::MessageInPort.new :processor => processor, :message_type => SPNet::Message::CONTROL end it 'should pass the given message to the processing callback' do rv = @port.recv_message SPNet::ControlMessage.make_set_message(5) rv.data.should eq(5) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
spnet-0.1.2 | spec/message_in_port_spec.rb |
spnet-0.1.1 | spec/message_in_port_spec.rb |
spnet-0.1.0 | spec/message_in_port_spec.rb |