<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -28,6 +28,14 @@ module Spec
       def rspec_reset #:nodoc:
         __mock_proxy.reset
       end
+      
+      def as_null_object
+        __mock_proxy.act_as_null_object
+      end
+      
+      def null_object?
+        __mock_proxy.null_object?
+      end
 
     private
 </diff>
      <filename>lib/spec/mocks/methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -20,6 +20,11 @@ module Spec
       def null_object?
         @options[:null_object]
       end
+      
+      def act_as_null_object
+        @options[:null_object] = true
+        @target
+      end
 
       def add_message_expectation(expected_from, sym, opts={}, &amp;block)
         __add sym</diff>
      <filename>lib/spec/mocks/proxy.rb</filename>
    </modified>
    <modified>
      <diff>@@ -36,5 +36,13 @@ module Spec
         @mock.message(:unexpected_arg)
       end
     end
+    
+    describe &quot;as_null_object&quot; do
+      it &quot;should set the object to null_object&quot; do
+        obj = mock('anything').as_null_object
+        
+        obj.should be_null_object
+      end
+    end
   end
 end</diff>
      <filename>spec/spec/mocks/null_object_mock_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>54e0b01174da205571704c0030e9611aef9db02b</id>
    </parent>
  </parents>
  <author>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec/commit/949205a2cefa7b3c6a8c188690f372c2a8320ab3</url>
  <id>949205a2cefa7b3c6a8c188690f372c2a8320ab3</id>
  <committed-date>2008-08-10T05:52:04-07:00</committed-date>
  <authored-date>2008-08-10T05:52:04-07:00</authored-date>
  <message>added as_null_object</message>
  <tree>2d93534114a0978fa2511ccaa923af5c793a8cf1</tree>
  <committer>
    <name>David Chelimsky</name>
    <email>dchelimsky@gmail.com</email>
  </committer>
</commit>
