test/composite_queue_test.rb in adrian-1.4.0 vs test/composite_queue_test.rb in adrian-1.5.0

- old
+ new

@@ -24,9 +24,17 @@ @q.pop.value.must_equal(4) @q.pop.must_be_nil @q1.pop.must_be_nil @q2.pop.must_be_nil end + + it 'sets the original queue on the item' do + @q1.push(1) + @q2.push(2) + + @q.pop.queue.must_equal @q1 + @q.pop.queue.must_equal @q2 + end end describe "pushing" do it "should not be allowed" do lambda { @q.push(1) }.must_raise(RuntimeError)