Rework spec/support/event_shared_context.rb
The following discussion from gitlab-org/security/lib/triage-ops!1 should be addressed:
-
@godfat-gitlab started a discussion: I think this is completely a mess, but I don't want to deal with it now.
It's very unclear to me what exactly we're trying to do here. We have local variables?
event_attrs
? And also those fromlet
?I really dislike that we're stubbing everything in the event. I really think we should just use an actual event and then feed it with hash we want.
However rewrite all these is going to take some time.
Edited by Lin Jen-Shin