Skip to content

Commit

Permalink
fix callback in the not_log_message assertion so it reports the failu…
Browse files Browse the repository at this point in the history
…re correctly
  • Loading branch information
mojavelinux committed Oct 5, 2023
1 parent 002acfa commit f1aa523
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/spec_helper/matchers/not_log_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
match notify_expectation_failures: true do |actual|
with_memory_logger expected.to_h[:using_log_level] do |logger|
actual.call
logger ? logger.empty? : true
(expect logger).to be_empty if logger
true
end
end

Expand Down

0 comments on commit f1aa523

Please sign in to comment.