Sha256: 89b766813b2e3869767156e680409a5732ce1b23dbe19f6fb8ab614ac85c75d9
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module StructuredWarnings module Test module Assertions def assert_no_warn(warning = Warning) w = StructuredWarnings::Test::Warner.new Dynamic.let(:warner => w) do yield end assert !w.warned?(warning), "#{warning} has been emitted." end def assert_warn(warning = Warning) w = StructuredWarnings::Test::Warner.new Dynamic.let(:warner => w) do yield end assert w.warned?(warning), "#{warning} has not been emitted." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
structured_warnings-0.1.0 | lib/structured_warnings/test/assertions.rb |