Skip to content

Better support for hash_including matching - #115

Open
bdurand wants to merge 1 commit into
synchronize-log-writingfrom
hash-including-matching
Open

Better support for hash_including matching#115
bdurand wants to merge 1 commit into
synchronize-log-writingfrom
hash-including-matching

Conversation

@bdurand

@bdurand bdurand commented Aug 4, 2026

Copy link
Copy Markdown
Owner
  • Lumberjack::LogEntryMatcher no longer ignores an attributes filter that is not a hash. Passing a matcher like RSpec's hash_including as the entire filter silently matched every entry; it is now applied to the entry's attributes hash with ===.
  • Lumberjack::LogEntryMatcher now exposes log entry attributes to matchers with indifferent key access, so matchers that do their own key lookups (i.e. RSpec's hash_including) can use either string or symbol attribute names.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant