diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2021-08-24 15:52:44 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2021-08-24 15:52:44 -0400 |
commit | f8834d18f2a461f0e1d1a3886c056c82264f4a11 (patch) | |
tree | 8e40db02a708ef55534688c57ea5fae2c5a00f36 | |
parent | c776099c68bc2e1a7dfeda100e50f55de069d02e (diff) | |
download | sdl_ios-f8834d18f2a461f0e1d1a3886c056c82264f4a11.tar.gz |
Fix menu manager tests
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m | 8 |
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", ^{ |