Sha256: 9473d1807e61292c3a189bd28d56f88ab851ac823e7fea1160f0536f10039c29

Contents?: true

Size: 269 Bytes

Versions: 10

Compression:

Stored size: 269 Bytes

Contents

require 'benchmark'
require 'power_assert'

def assertion_message(source = nil, source_binding = TOPLEVEL_BINDING, &blk)
  ::PowerAssert.start(source || blk, assertion_method: __callee__, source_binding: source_binding) do |pa|
    pa.message unless pa.yield
  end
end

Version data entries

10 entries across 10 versions & 6 rubygems

Version Path
ruby-compiler-0.1.1 vendor/ruby/gems/power_assert-0.4.1/benchmarks/helper.rb
power_assert-0.4.1 benchmarks/helper.rb
power_assert-0.4.0 benchmarks/helper.rb
tdiary-5.0.2 vendor/bundle/gems/power_assert-0.3.0/benchmarks/helper.rb
power_assert-0.3.1 benchmarks/helper.rb
tdiary-5.0.1 vendor/bundle/gems/power_assert-0.3.0/benchmarks/helper.rb
windows-pr-1.2.5 vendor/bundle/ruby/2.2.0/gems/win32-api-1.6.0-universal-mingw32/vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/benchmarks/helper.rb
win32-api-1.6.0-universal-mingw32 vendor/bundle/ruby/2.2.0/gems/power_assert-0.3.0/benchmarks/helper.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/power_assert-0.3.0/benchmarks/helper.rb
power_assert-0.3.0 benchmarks/helper.rb