Skip to content

Analytics-related spec updates#10309

Merged
matthinz merged 14 commits intomainfrom
matthinz/more-have-logged-event
Mar 25, 2024
Merged

Analytics-related spec updates#10309
matthinz merged 14 commits intomainfrom
matthinz/more-have-logged-event

Conversation

@matthinz
Copy link
Contributor

Previously: #10258

This PR:

  • Updates several specs to use have_logged_event instead of expect(@analytics).to receive(:track_event).
  • Removes allowed_extra_analytics: [:*] from a couple of specs and documents the parameters found

@matthinz matthinz requested a review from a team March 25, 2024 22:01
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for taking the time to do these!!!

Limit some analytics assertions using hash_including.

I feel like the spirit of the assertions is still being captured, despite not exhaustively checking every argument.
@matthinz matthinz merged commit 2358fb8 into main Mar 25, 2024
@matthinz matthinz deleted the matthinz/more-have-logged-event branch March 25, 2024 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants