method
matches_hash?
rails latest stable - Class:
ActiveSupport::Testing::EventReporterAssertions::EventCollector::Event
matches_hash?(expected_hash, event_key)private
No documentation available.
# File activesupport/lib/active_support/testing/event_reporter_assertions.rb, line 34
def matches_hash?(expected_hash, event_key)
expected_hash.all? do |k, v|
if v.is_a?(Regexp)
event_data.dig(event_key, k).to_s.match?(v)
else
event_data.dig(event_key, k) == v
end
end
end