]> git.openstreetmap.org Git - rails.git/blobdiff - vendor/gems/rspec-1.1.2/spec/spec/mocks/precise_counts_spec.rb
Removing rspec from svn, as it isn't being used.
[rails.git] / vendor / gems / rspec-1.1.2 / spec / spec / mocks / precise_counts_spec.rb
diff --git a/vendor/gems/rspec-1.1.2/spec/spec/mocks/precise_counts_spec.rb b/vendor/gems/rspec-1.1.2/spec/spec/mocks/precise_counts_spec.rb
deleted file mode 100644 (file)
index ba38989..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-require File.dirname(__FILE__) + '/../../spec_helper.rb'
-
-module Spec
-  module Mocks
-    describe "PreciseCounts" do
-      before(:each) do
-        @mock = mock("test mock")
-      end
-
-      it "should fail when exactly n times method is called less than n times" do
-        @mock.should_receive(:random_call).exactly(3).times
-        @mock.random_call
-        @mock.random_call
-        lambda do
-          @mock.rspec_verify
-        end.should raise_error(MockExpectationError)
-      end
-
-      it "should fail when exactly n times method is never called" do
-        @mock.should_receive(:random_call).exactly(3).times
-        lambda do
-          @mock.rspec_verify
-        end.should raise_error(MockExpectationError)
-      end
-
-      it "should pass if exactly n times method is called exactly n times" do
-        @mock.should_receive(:random_call).exactly(3).times
-        @mock.random_call
-        @mock.random_call
-        @mock.random_call
-        @mock.rspec_verify
-      end
-
-      it "should pass multiple calls with different args and counts" do
-        @mock.should_receive(:random_call).twice.with(1)
-        @mock.should_receive(:random_call).once.with(2)
-        @mock.random_call(1)
-        @mock.random_call(2)
-        @mock.random_call(1)
-        @mock.rspec_verify
-      end
-
-      it "should pass mutiple calls with different args" do
-        @mock.should_receive(:random_call).once.with(1)
-        @mock.should_receive(:random_call).once.with(2)
-        @mock.random_call(1)
-        @mock.random_call(2)
-        @mock.rspec_verify
-      end
-    end
-  end
-end