From 5aec80da474d546e2ff7ea2d89c78eefea3e32e3 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 1 Jul 2014 20:59:10 +0200 Subject: [PATCH] Fix appController._pgp mocking in read controller test --- test/unit/read-ctrl-test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/read-ctrl-test.js b/test/unit/read-ctrl-test.js index 9875371..893fbc1 100644 --- a/test/unit/read-ctrl-test.js +++ b/test/unit/read-ctrl-test.js @@ -26,8 +26,8 @@ define(function(require) { origInvitation = appController._invitationDao; appController._invitationDao = invitationMock = sinon.createStubInstance(InvitationDAO); - origCrypto = appController._crypto; - appController._crypto = cryptoMock = sinon.createStubInstance(PGP); + origCrypto = appController._pgp; + appController._pgp = cryptoMock = sinon.createStubInstance(PGP); origOutbox = appController._outboxBo; appController._outboxBo = outboxMock = sinon.createStubInstance(OutboxBO); @@ -51,7 +51,7 @@ define(function(require) { afterEach(function() { appController._keychain = origKeychain; appController._invitationDao = origInvitation; - appController._crypto = origCrypto; + appController._pgp = origCrypto; appController._outboxBo = origOutbox; appController._emailDao = origEmailDao; });