|
1298 | 1298 | holdout = config_with_holdouts.get_holdout('holdout_1') |
1299 | 1299 | expect(holdout).not_to be_nil |
1300 | 1300 | expect(holdout['id']).to eq('holdout_1') |
1301 | | - expect(holdout['key']).to eq('test_holdout') |
| 1301 | + expect(holdout['key']).to eq('global_holdout') |
1302 | 1302 | expect(holdout['status']).to eq('Running') |
1303 | 1303 | end |
1304 | 1304 |
|
1305 | 1305 | it 'should return holdout regardless of status when valid ID is provided' do |
1306 | 1306 | holdout = config_with_holdouts.get_holdout('holdout_2') |
1307 | 1307 | expect(holdout).not_to be_nil |
1308 | 1308 | expect(holdout['id']).to eq('holdout_2') |
1309 | | - expect(holdout['key']).to eq('another_holdout') |
1310 | | - expect(holdout['status']).to eq('Inactive') |
| 1309 | + expect(holdout['key']).to eq('specific_holdout') |
| 1310 | + expect(holdout['status']).to eq('Running') |
1311 | 1311 | end |
1312 | 1312 |
|
1313 | 1313 | it 'should return nil for non-existent holdout ID' do |
|
1363 | 1363 | 'key' => 'global', |
1364 | 1364 | 'status' => 'Running', |
1365 | 1365 | 'includedFlags' => [], |
1366 | | - 'excludedFlags' => %w[boolean_feature string_single_variable_feature] |
| 1366 | + 'excludedFlags' => ['553339214', '594060'] |
1367 | 1367 | }, |
1368 | 1368 | { |
1369 | 1369 | 'id' => 'specific_holdout', |
1370 | 1370 | 'key' => 'specific', |
1371 | 1371 | 'status' => 'Running', |
1372 | | - 'includedFlags' => %w[multi_variate_feature empty_feature], |
| 1372 | + 'includedFlags' => ['594089', '594032'], |
1373 | 1373 | 'excludedFlags' => [] |
1374 | 1374 | }, |
1375 | 1375 | { |
1376 | 1376 | 'id' => 'inactive_holdout', |
1377 | 1377 | 'key' => 'inactive', |
1378 | 1378 | 'status' => 'Inactive', |
1379 | | - 'includedFlags' => ['boolean_feature'], |
| 1379 | + 'includedFlags' => ['553339214'], |
1380 | 1380 | 'excludedFlags' => [] |
1381 | 1381 | } |
1382 | 1382 | ] |
|
0 commit comments