Skip to content

Commit 28802bc

Browse files
[FSSDK-12265] Fix RuboCop style violations
Use %w[] syntax for word arrays instead of string arrays Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent e8f280e commit 28802bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

spec/config/datafile_project_config_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1813,7 +1813,7 @@
18131813
'audiences' => [],
18141814
'includedFlags' => [],
18151815
'excludedFlags' => [],
1816-
'experiments' => ['exp_123', 'exp_456'],
1816+
'experiments' => %w[exp_123 exp_456],
18171817
'variations' => [],
18181818
'trafficAllocation' => []
18191819
},
@@ -1962,7 +1962,7 @@
19621962
describe 'experiments field parsing and defaults' do
19631963
it 'should parse experiments field from datafile' do
19641964
holdout = config_with_experiment_holdouts.get_holdout('holdout_exp_1')
1965-
expect(holdout['experiments']).to eq(['exp_123', 'exp_456'])
1965+
expect(holdout['experiments']).to eq(%w[exp_123 exp_456])
19661966
end
19671967

19681968
it 'should default experiments to empty array if not provided' do

0 commit comments

Comments
 (0)