Sha256: b3cbdae8b610eee9efd7b3b4ddda5bab0ed05a6848bc985c301059dccabfea17

Contents?: true

Size: 282 Bytes

Versions: 3

Compression:

Stored size: 282 Bytes

Contents

require 'minitest/test'

require 'minitest/around/version'

Minitest::Test.class_eval do
  alias_method :run_without_around, :run
  def run(*args)
    if defined?(around)
      around { run_without_around(*args) }
    else
      run_without_around(*args)
    end
    self
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minitest-around-0.4.0 lib/minitest/around/unit.rb
minitest-around-0.3.2 lib/minitest/around/unit.rb
minitest-around-0.3.1 lib/minitest/around/unit.rb