Sha256: 62b8ceba8fc9807b171096680db2857defdddf10510a6b6a0b631a60377304e7
Contents?: true
Size: 933 Bytes
Versions: 5
Compression:
Stored size: 933 Bytes
Contents
require File.dirname(__FILE__) + '/test_helper.rb' context "A port" do specify "should return terms from the queue if it is not empty" do port = FakePort.new() port.queue.clear port.queue << :foo << :bar port.receive.should == :foo port.receive.should == :bar port.receive.should == nil end specify "should read_from_input if the queue gets empty" do port = FakePort.new(:bar) port.queue.clear port.queue << :foo port.receive.should == :foo port.receive.should == :bar port.receive.should == nil end specify "should put the terms in skipped at the front of queue when restore_skipped is called" do port = FakePort.new(:baz) port.queue.clear port.queue << :bar port.skipped << :foo port.restore_skipped port.receive.should == :foo port.receive.should == :bar port.receive.should == :baz port.receive.should == nil end end
Version data entries
5 entries across 5 versions & 3 rubygems