summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2021-08-24 15:52:44 -0400
committerJoel Fischer <joeljfischer@gmail.com>2021-08-24 15:52:44 -0400
commitf8834d18f2a461f0e1d1a3886c056c82264f4a11 (patch)
tree8e40db02a708ef55534688c57ea5fae2c5a00f36
parentc776099c68bc2e1a7dfeda100e50f55de069d02e (diff)
downloadsdl_ios-f8834d18f2a461f0e1d1a3886c056c82264f4a11.tar.gz
Fix menu manager tests
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
index 296c4c933..c663205e2 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
@@ -157,12 +157,12 @@ describe(@"menu manager", ^{
});
context(@"if the new menu cells are identical to the old menu cells", ^{
- it(@"should only queue one transaction", ^{
+ it(@"should queue two transactions and let the operation handle not updating", ^{
testManager.menuCells = @[textOnlyCell];
testManager.menuCells = @[textOnlyCell];
expect(testManager.menuCells).to(equal(@[textOnlyCell]));
- expect(testManager.transactionQueue.operationCount).to(equal(1));
+ expect(testManager.transactionQueue.operationCount).to(equal(2));
});
});
@@ -333,7 +333,7 @@ describe(@"menu manager", ^{
}];
cellWithHandler.cellId = 1;
- testManager.menuCells = @[cellWithHandler];
+ testManager.currentMenuCells = @[cellWithHandler];
});
it(@"should call the cell handler", ^{
@@ -362,7 +362,7 @@ describe(@"menu manager", ^{
cellWithHandler.parentCellId = 1;
- testManager.menuCells = @[submenuCell];
+ testManager.currentMenuCells = @[submenuCell];
});
it(@"should call the cell handler", ^{