Skip to content

Commit

Permalink
wip - build an actual event for comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
solnic committed Oct 10, 2024
1 parent 908ef75 commit 416fd7f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sentry-ruby/lib/sentry/rspec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

RSpec::Matchers.define :include_sentry_event do |event_message = "", **opts|
match do |sentry_events|
event = sentry_events.find { |event| event.message == event_message }
@expected_event = Sentry.get_current_client.event_from_message(event_message)

event = sentry_events.find { |event| event.message == @expected_event.message }

return false unless event

Expand Down

0 comments on commit 416fd7f

Please sign in to comment.