From 2e5199997c77cb2febed4ff21bc12a5d5fbad4ce Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Tue, 31 May 2011 10:32:54 +0200 Subject: Rename deprecated wasCalled() -> toHaveBeenCalled() in all specs As well as wasNotCalled(), wasCalledWith(), wasNotCalledWith() --- test/service/xhr.bulkSpec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/service/xhr.bulkSpec.js') diff --git a/test/service/xhr.bulkSpec.js b/test/service/xhr.bulkSpec.js index 89429a91..2990e666 100644 --- a/test/service/xhr.bulkSpec.js +++ b/test/service/xhr.bulkSpec.js @@ -57,10 +57,10 @@ describe('$xhr.bulk', function() { $xhrBulk.flush(function(){ log += 'DONE';}); $browserXhr.flush(); - expect($xhrError).wasCalled(); + expect($xhrError).toHaveBeenCalled(); var cb = $xhrError.mostRecentCall.args[0].callback; expect(typeof cb).toEqual($function); - expect($xhrError).wasCalledWith( + expect($xhrError).toHaveBeenCalledWith( {url:'/req1', method:'GET', data:null, callback:cb}, {status:404, response:'NotFound'}); -- cgit v1.2.3