Skip to content

Commit 8373a0a

Browse files
author
Bilal Al
committed
fix test
1 parent 234cf30 commit 8373a0a

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

spec/splitclient/manager_localhost_spec.rb

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
name: 'local_feature',
2222
traffic_type_name: nil,
2323
treatments: ['local_treatment'],
24-
sets: [] }
24+
sets: [],
25+
impressions_disabled: nil }
2526
end
2627

2728
let(:split_views) do
@@ -32,15 +33,17 @@
3233
name: 'local_feature',
3334
traffic_type_name: nil,
3435
treatments: ['local_treatment'],
35-
sets: [] },
36+
sets: [],
37+
impressions_disabled: nil },
3638
{ change_number: nil,
3739
configs: { local_treatment2: nil },
3840
default_treatment: "control_treatment",
3941
killed: false,
4042
name: 'local_feature2',
4143
traffic_type_name: nil,
4244
treatments: ['local_treatment2'],
43-
sets: [] }]
45+
sets: [],
46+
impressions_disabled: nil }]
4447
end
4548

4649
it 'validates the calling manager.splits returns the offline data' do
@@ -70,7 +73,8 @@
7073
name: 'multiple_keys_feature',
7174
traffic_type_name: nil,
7275
treatments: %w[off on],
73-
sets: [] },
76+
sets: [],
77+
impressions_disabled: nil },
7478
{ change_number: nil,
7579
configs: {
7680
on: '{"desc":"this applies only to ON and only for john_doe. The rest will receive OFF"}',
@@ -81,7 +85,8 @@
8185
name: 'single_key_feature',
8286
traffic_type_name: nil,
8387
treatments: %w[on off],
84-
sets: [] },
88+
sets: [],
89+
impressions_disabled: nil },
8590
{ change_number: nil,
8691
configs: {
8792
off: '{"desc":"this applies only to OFF treatment"}'
@@ -91,7 +96,8 @@
9196
name: 'no_keys_feature',
9297
traffic_type_name: nil,
9398
treatments: %w[off],
94-
sets: [] }]
99+
sets: [],
100+
impressions_disabled: nil }]
95101
end
96102

97103
it 'returns split_names' do

0 commit comments

Comments
 (0)