Skip to content

Commit f636399

Browse files
fix: correct RSpec expectation syntax in test
- Use have_received instead of receive for post-call verification - Fixes test failure in config method tracking test Co-Authored-By: [email protected] <[email protected]>
1 parent a2b1c77 commit f636399

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/server/ai/config_tracker_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@
393393

394394
client.config('test-config-key', context, default_value)
395395

396-
expect(ld_client).to receive(:track).with(
396+
expect(ld_client).to have_received(:track).with(
397397
'$ld:ai:config:function:single',
398398
context,
399399
'test-config-key',

0 commit comments

Comments
 (0)