@@ -1974,9 +1974,9 @@ def build_datafile(experiments: [], rollouts: [], feature_flags: [])
19741974 end
19751975 end
19761976
1977- describe '#get_global_holdouts ' do
1977+ describe '#global_holdouts ' do
19781978 it 'returns only holdouts without includedRules (global holdouts)' do
1979- global_holdouts = config_with_local_holdouts . get_global_holdouts
1979+ global_holdouts = config_with_local_holdouts . global_holdouts
19801980
19811981 expect ( global_holdouts ) . not_to be_nil
19821982 expect ( global_holdouts ) . to be_an ( Array )
@@ -1988,14 +1988,14 @@ def build_datafile(experiments: [], rollouts: [], feature_flags: [])
19881988 end
19891989
19901990 it 'does not include local holdouts (those with includedRules array)' do
1991- global_holdouts = config_with_local_holdouts . get_global_holdouts
1991+ global_holdouts = config_with_local_holdouts . global_holdouts
19921992 local_holdout = config_with_local_holdouts . get_holdout ( 'holdout_local_1' )
19931993
19941994 expect ( global_holdouts ) . not_to include ( local_holdout )
19951995 end
19961996
19971997 it 'does not include holdouts with empty includedRules array' do
1998- global_holdouts = config_with_local_holdouts . get_global_holdouts
1998+ global_holdouts = config_with_local_holdouts . global_holdouts
19991999 empty_local_holdout = config_with_local_holdouts . get_holdout ( 'holdout_local_empty_rules' )
20002000
20012001 # Empty [] is local, not global — must not appear in global_holdouts
@@ -2022,7 +2022,7 @@ def build_datafile(experiments: [], rollouts: [], feature_flags: [])
20222022 logger ,
20232023 error_handler
20242024 )
2025- expect ( config_no_global . get_global_holdouts ) . to eq ( [ ] )
2025+ expect ( config_no_global . global_holdouts ) . to eq ( [ ] )
20262026 end
20272027 end
20282028
@@ -2079,7 +2079,7 @@ def build_datafile(experiments: [], rollouts: [], feature_flags: [])
20792079
20802080 # Must be classified as global
20812081 expect ( config_global_only . holdout_global? ( holdout ) ) . to be true
2082- expect ( config_global_only . get_global_holdouts ) . to include ( holdout )
2082+ expect ( config_global_only . global_holdouts ) . to include ( holdout )
20832083 expect ( config_global_only . get_holdouts_for_rule ( 'any_rule' ) ) . to eq ( [ ] )
20842084 end
20852085
0 commit comments