<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -566,6 +566,7 @@ function jack() {} // This needs to be here to make error reporting work correct
 			api.mock = mock;
 			api.stub = stub;
 			api.returnValue = returnValue;
+			api.returnValues = returnValues;
 			api.describe = describe;
 			api.invocations = invocations;
 			api.getArgumentValues = getArgumentValues;
@@ -707,7 +708,14 @@ function jack() {} // This needs to be here to make error reporting work correct
 		function returnValue(value) {
 			mockImplementation = function() {
 				return value;
-			}
+			};
+		}
+		function returnValues() {
+			var values = [], orig = this;
+			for (var i = 0, len = arguments.length; i &lt; len; i++) { values.push(arguments[i]); }
+			mockImplementation = function() {
+				return values.shift();
+			};
 		}
 		function hasMockImplementation() {
 			return mockImplementation != null;</diff>
      <filename>lib/spocks_brain/public/jack.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>76c07ec3c5317d59c66daed88a98f55fd8a2bd16</id>
    </parent>
  </parents>
  <author>
    <name>Duncan Beevers</name>
    <email>duncanbeevers@gmail.com</email>
  </author>
  <url>http://github.com/duncanbeevers/transmission-web-ui/commit/945160d72ae4d7c1ffcc7a77cc5651e90207d4ad</url>
  <id>945160d72ae4d7c1ffcc7a77cc5651e90207d4ad</id>
  <committed-date>2009-06-21T19:45:53-07:00</committed-date>
  <authored-date>2009-06-21T19:45:53-07:00</authored-date>
  <message>Add a convenient interface for returning different values on subsequent invocations of a mocked method</message>
  <tree>1a77040bae504c64a5ab9119b70c87e2682aada1</tree>
  <committer>
    <name>Duncan Beevers</name>
    <email>duncanbeevers@gmail.com</email>
  </committer>
</commit>
