Skip to content

Commit fbeffc9

Browse files
authored
refactor: change test name (#142)
1 parent c59f18b commit fbeffc9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Example/Tests/Classes/ActionManagerTest.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ - (void)test_active_period_false
283283
LPActionManager *manager = [LPActionManager sharedManager];
284284
LPContextualValues *contextualValues = [[LPContextualValues alloc] init];
285285

286-
NSDictionary *config = [self _configForActivePeriodMatch:NO];
286+
NSDictionary *config = [self messageConfigInActivePeriod:NO];
287287

288288
LeanplumMessageMatchResult result = [manager shouldShowMessage:@""
289289
withConfig:config
@@ -298,7 +298,7 @@ - (void)test_active_period_true
298298
LPActionManager *manager = [LPActionManager sharedManager];
299299
LPContextualValues *contextualValues = [[LPContextualValues alloc] init];
300300

301-
NSDictionary *config = [self _configForActivePeriodMatch:YES];
301+
NSDictionary *config = [self messageConfigInActivePeriod:YES];
302302

303303
LeanplumMessageMatchResult result = [manager shouldShowMessage:@""
304304
withConfig:config
@@ -311,16 +311,16 @@ - (void)test_active_period_true
311311

312312
#pragma mark Helpers
313313

314-
-(NSDictionary *)_configForActivePeriodMatch:(BOOL)activePeriod
314+
-(NSDictionary *)messageConfigInActivePeriod:(BOOL)inActivePeriod
315315
{
316316
NSDictionary *config = @{@"whenLimits":@{@"children":@[]},
317317
@"whenTriggers":@{@"children":@[@{@"noun":@"ActivePeriodTest",
318318
@"subject":@"event",
319319
}],
320320
@"verb":@"OR"
321321
},
322-
@"startTime": activePeriod ? @1524507600000 : @956557100000,
323-
@"endTime": activePeriod ? @7836202020000 : @956557200000
322+
@"startTime": inActivePeriod ? @1524507600000 : @956557100000,
323+
@"endTime": inActivePeriod ? @7836202020000 : @956557200000
324324
};
325325
return config;
326326
}

0 commit comments

Comments
 (0)