]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/spec/spec/matchers/simple_matcher_spec.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / spec / spec / matchers / simple_matcher_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/spec/spec/matchers/simple_matcher_spec.rb b/vendor/gems/rspec-1.1.2/spec/spec/matchers/simple_matcher_spec.rb
deleted file mode 100644 (file)
index b731af9..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper'
-
-module Spec
-  module Matchers
-    describe SimpleMatcher do
-      it "should match pass match arg to block" do
-        actual = nil
-        matcher = simple_matcher("message") do |given| actual = given end
-        matcher.matches?("foo")
-        actual.should == "foo"
-      end
-      
-      it "should provide a stock failure message" do
-        matcher = simple_matcher("thing") do end
-        matcher.matches?("other")
-        matcher.failure_message.should =~ /expected \"thing\" but got \"other\"/
-      end
-      
-      it "should provide a stock negative failure message" do
-        matcher = simple_matcher("thing") do end
-        matcher.matches?("other")
-        matcher.negative_failure_message.should =~ /expected not to get \"thing\", but got \"other\"/
-      end
-      
-      it "should provide a description" do
-        matcher = simple_matcher("thing") do end
-        matcher.description.should =="thing"
-      end
-    end
-  end
-end
\ No newline at end of file