From 9ca87ba2b95ebc8d0faf097ff88b353701e81516 Mon Sep 17 00:00:00 2001 From: michael starke Date: Mon, 5 Oct 2015 16:27:57 +0200 Subject: [PATCH] adopted new KeePassKit behaviour for updateToNode on test Signed-off-by: michael starke --- MacPassTests/KPKTestUndo.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MacPassTests/KPKTestUndo.m b/MacPassTests/KPKTestUndo.m index 76a8266c..a7b0e842 100644 --- a/MacPassTests/KPKTestUndo.m +++ b/MacPassTests/KPKTestUndo.m @@ -340,10 +340,8 @@ XCTAssertFalse(_undoManager.canUndo, @"Undo stack is empty"); XCTAssertFalse(_undoManager.canRedo, @"Redo stack is empty"); - KPKEntry *invalid = [_tree createEntry:_tree.root]; - KPKEntry *copy = [_entryA copy]; - XCTAssertThrows([_entryA updateToNode:invalid], @"Updating to a wrong node is not allowed"); - XCTAssertEqualObjects(_entryA, copy, @"Entry a has no changes after updateToNode was called with wrong node argument"); + XCTAssertThrows([_entryA updateToNode:_groupA], @"Updating Entry to Group is not possible"); + XCTAssertThrows([_groupA updateToNode:_entryA], @"Updating Group to Entry is not possible"); XCTAssertFalse(_undoManager.canUndo, @"Undo stack is empty after failed update"); XCTAssertFalse(_undoManager.canRedo, @"Redo stack is empty after failed update");