(function() {
	'use strict';

	if(typeof exports === 'object') {

		var when = require('../when');

		exports.fulfilled = when.resolve;
		exports.rejected = when.reject;

		exports.pending = function () {
			var deferred = when.defer();

			return {
				promise: deferred.promise,
				fulfill: deferred.resolve,
				reject: deferred.reject
			};
		};
	}
})();

@@ -209,140 +209,170 @@
 var 
-deferred = when.defer();%0A%0A%09%09%09return %7B%0A%09%09%09%09promise: deferred.promise,%0A%09%09%09%09fulfill: deferred.
+pending = %7B%7D;%0A%0A%09%09%09pending.promise = when.promise(function(resolve, reject) %7B%0A%09%09%09%09pending.fulfill = 
 resolve
-,
+;
 %0A%09%09%09%09
-reject: deferred.
+pending.reject = 
 reject
+;
 %0A%09%09%09%7D
+);%0A%0A%09%09%09return pending
 ;%0A%09%09

Update aplus test adapter to use when.promise