]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/examples/pure/stack_spec_with_nested_example_groups.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / examples / pure / stack_spec_with_nested_example_groups.rb
diff --git a/vendor/gems/rspec-1.1.2/examples/pure/stack_spec_with_nested_example_groups.rb b/vendor/gems/rspec-1.1.2/examples/pure/stack_spec_with_nested_example_groups.rb
deleted file mode 100644 (file)
index 05f6ad4..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-require File.dirname(__FILE__) + '/spec_helper'
-require File.dirname(__FILE__) + '/stack'
-require File.dirname(__FILE__) + '/shared_stack_examples'
-
-describe Stack do
-  
-  before(:each) do
-    @stack = Stack.new
-  end
-
-  describe "(empty)" do
-
-    it { @stack.should be_empty }
-  
-    it_should_behave_like "non-full Stack"
-  
-    it "should complain when sent #peek" do
-      lambda { @stack.peek }.should raise_error(StackUnderflowError)
-    end
-  
-    it "should complain when sent #pop" do
-      lambda { @stack.pop }.should raise_error(StackUnderflowError)
-    end
-
-  end
-
-  describe "(with one item)" do
-    
-    before(:each) do
-      @stack.push 3
-      @last_item_added = 3
-    end
-
-    it_should_behave_like "non-empty Stack"
-    it_should_behave_like "non-full Stack"
-
-  end
-
-  describe "(with one item less than capacity)" do
-    
-    before(:each) do
-      (1..9).each { |i| @stack.push i }
-      @last_item_added = 9
-    end
-  
-    it_should_behave_like "non-empty Stack"
-    it_should_behave_like "non-full Stack"
-  end
-
-  describe "(full)" do
-    
-    before(:each) do
-      (1..10).each { |i| @stack.push i }
-      @last_item_added = 10
-    end
-
-    it { @stack.should be_full }  
-
-    it_should_behave_like "non-empty Stack"
-
-    it "should complain on #push" do
-      lambda { @stack.push Object.new }.should raise_error(StackOverflowError)
-    end
-  
-  end
-
-end