Class StructuredWarnings::Test::Warner
In: lib/structured_warnings/test/warner.rb
Parent: StructuredWarnings::Warner

This warner is used in Assertions#assert_warn and Assertions#assert_no_warn blocks. It captures all warnings in format and provides access to them using the warned? method.

Methods

format   warned?  

Public Instance methods

Overrides the public interface of StructuredWarnings::Warner. This method always returns nil to avoid warnings on stdout during assert_warn and assert_no_warn blocks.

Returns true if any warning or a subclass of warning was emitted.

[Validate]