<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,8 +9,12 @@ module Spec
         __mock_proxy.add_negative_message_expectation(caller(1)[0], sym.to_sym, &amp;block)
       end
       
-      def stub!(sym, opts={})
-        __mock_proxy.add_stub(caller(1)[0], sym.to_sym, opts)
+      def stub!(sym_or_hash, opts={})
+        if Hash === sym_or_hash
+          sym_or_hash.each {|method, value| stub!(method).and_return value }
+        else
+          __mock_proxy.add_stub(caller(1)[0], sym_or_hash.to_sym, opts)
+        end
       end
       
       def received_message?(sym, *args, &amp;block) #:nodoc:</diff>
      <filename>lib/spec/mocks/methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -44,6 +44,12 @@ module Spec
           @instance.rspec_verify
         end.should_not raise_error
       end
+
+      it &quot;should handle multiple stubbed methods&quot; do
+        @instance.stub!(:msg1 =&gt; 1, :msg2 =&gt; 2)
+        @instance.msg1.should == 1
+        @instance.msg2.should == 2
+      end
       
       it &quot;should clear itself when verified&quot; do
         @instance.stub!(:this_should_go).and_return(:blah)</diff>
      <filename>spec/spec/mocks/stub_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc359c78147166bc9688ea49a5ebf237478e6f24</id>
    </parent>
  </parents>
  <author>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </author>
  <url>http://github.com/dchelimsky/rspec/commit/5fd78361039d069449f91dc506ae2bf3d9d616de</url>
  <id>5fd78361039d069449f91dc506ae2bf3d9d616de</id>
  <committed-date>2008-07-25T09:05:21-07:00</committed-date>
  <authored-date>2008-07-25T09:05:21-07:00</authored-date>
  <message>added ability to stub multiple methods in one stub! call</message>
  <tree>498c5e97c890a7d6150ba6ab41e9f9dcc1291af5</tree>
  <committer>
    <name>Pat Maddox</name>
    <email>pat.maddox@gmail.com</email>
  </committer>
</commit>
