method

matches_hash?

Method not available on this version

This method is only available on newer versions. The first available version (v8.1.1) is shown here.

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