Sha256: d8c2135969898db6d24e657a1dc1e306771fcdb0d83c85ee6297249b2b0d3bf0
Contents?: true
Size: 319 Bytes
Versions: 2
Compression:
Stored size: 319 Bytes
Contents
module Test::Unit::Assertions def assert_difference(measure, difference = 1) before = eval(measure) yield after = eval(measure) message = "Expected '#{measure}' to be: #{before + difference} but was: #{after}\n" assert_block(message) do after == (before + difference) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mini-smtp-server-0.0.2 | test/setup/custom_assertions.rb |
mini-smtp-server-0.0.1 | test/setup/custom_assertions.rb |