Sha256: a8d3a8071a34d6f42d839b57796c1e573d990e4194e94f593b27bb4ba3b8cd0b

Contents?: true

Size: 254 Bytes

Versions: 6

Compression:

Stored size: 254 Bytes

Contents

module Support
  module NothingRaised
    # Inspired by assert_raises from minitest
    def assert_nothing_raised(&block)
      block.call
    rescue Exception => e
      flunk "No exception expected, but #{mu_pp(e.class)} was raised."
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
outpost-0.2.5 test/support/nothing_raised.rb
outpost-0.2.4 test/support/nothing_raised.rb
outpost-0.2.3 test/support/nothing_raised.rb
outpost-0.2.2 test/support/nothing_raised.rb
outpost-0.2.1 test/support/nothing_raised.rb
outpost-0.2.0 test/support/nothing_raised.rb