1 require File.dirname(__FILE__) + '/spec_helper'
2 require File.dirname(__FILE__) + '/stack'
4 # TODO - this runs and does the right thing except for
5 # output - "Stack" never appears. Getting close though.
12 describe "when empty" do
13 it "should be empty" do
14 @stack.should be_empty
18 describe "when full" do
20 (1..10).each {|n| @stack.push n}
22 it "should description" do