]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/spec/spec/matchers/exist_spec.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / spec / spec / matchers / exist_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/spec/spec/matchers/exist_spec.rb b/vendor/gems/rspec-1.1.2/spec/spec/matchers/exist_spec.rb
deleted file mode 100644 (file)
index 0a50972..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper.rb'
-
-class Substance
-  def initialize exists, description
-    @exists = exists
-    @description = description
-  end
-  def exist?
-    @exists
-  end
-  def inspect
-    @description
-  end
-end
-  
-class SubstanceTester
-  include Spec::Matchers
-  def initialize substance
-    @substance = substance
-  end
-  def should_exist
-    @substance.should exist
-  end
-end
-
-describe "should exist," do
-  
-  before(:each) do
-    @real = Substance.new true, 'something real'
-    @imaginary = Substance.new false, 'something imaginary'
-  end
-
-  describe "within an example group" do
-  
-    it "should pass if target exists" do
-      @real.should exist
-    end
-  
-    it "should fail if target does not exist" do
-      lambda { @imaginary.should exist }.should fail
-    end
-    
-    it "should pass if target doesn't exist" do
-      lambda { @real.should_not exist }.should fail
-    end
-  end
-
-  describe "outside of an example group" do
-
-    it "should pass if target exists" do
-      real_tester = SubstanceTester.new @real
-      real_tester.should_exist
-    end
-
-  end
-
-end