diff --git a/apps/files/tests/js/mainfileinfodetailviewSpec.js b/apps/files/tests/js/mainfileinfodetailviewSpec.js
index 9f1de8752de5747a115476e7b2effd54f43dbdad..10ad38097c6b45bf8ab1c2776720f04cbe21dae4 100644
--- a/apps/files/tests/js/mainfileinfodetailviewSpec.js
+++ b/apps/files/tests/js/mainfileinfodetailviewSpec.js
@@ -20,17 +20,17 @@
 */
 
 describe('OCA.Files.MainFileInfoDetailView tests', function() {
-	var view, tipsyStub, previewStub, fncLazyLoadPreview, fileListMock;
+	var view, tooltipStub, previewStub, fncLazyLoadPreview, fileListMock;
 
 	beforeEach(function() {
-		tipsyStub = sinon.stub($.fn, 'tipsy');
+		tooltipStub = sinon.stub($.fn, 'tooltip');
 		fileListMock = sinon.mock(OCA.Files.FileList.prototype);
 		view = new OCA.Files.MainFileInfoDetailView();
 	});
 	afterEach(function() {
 		view.destroy();
 		view = undefined;
-		tipsyStub.restore();
+		tooltipStub.restore();
 		fileListMock.restore();
 
 	});