method
matches?
rails latest stable - Class:
ActiveSupport::Testing::EventReporterAssertions::EventCollector::Event
matches?(name, payload, tags)public
No documentation available.
# File activesupport/lib/active_support/testing/event_reporter_assertions.rb, line 22
def matches?(name, payload, tags)
return false unless name.to_s == event_data[:name]
if payload && payload.is_a?(Hash)
return false unless matches_hash?(payload, :payload)
end
return false unless matches_hash?(tags, :tags)
true
end