Sha256: e7555f995f42b7081c524e1c62e2d9e077554f2e335ca717a5441fd121b14641

Contents?: true

Size: 600 Bytes

Versions: 10

Compression:

Stored size: 600 Bytes

Contents

require_relative 'helper'
require 'minitest/around/unit'

class OuterNestedTest < Minitest::Test
  @@var = []
  def setup
    @@var << :before
  end
  def teardown
    @@var << :after
    @@var.must_equal [:before, :ibefore, :begin, :ibegin, :during, :iend, :end, :iafter, :after]
  end
  def around
    @@var << :begin
    yield
    @@var << :end
  end
end

class InnerNestedTest < OuterNestedTest
  def setup
    @@var << :ibefore
  end
  def teardown
    @@var << :iafter
  end
  def around
    @@var << :ibegin
    yield
    @@var << :iend
  end
  def test_nesting
    @@var << :during
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
plaid-14.13.0 vendor/bundle/ruby/3.0.0/gems/minitest-around-0.5.0/test/nested_test.rb
plaid-14.12.1 vendor/bundle/ruby/3.0.0/gems/minitest-around-0.5.0/test/nested_test.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_test.rb
plaid-14.11.1 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_test.rb
plaid-14.10.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_test.rb
plaid-14.7.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_test.rb
minitest-around-0.5.0 test/nested_test.rb
minitest-around-0.4.1 test/nested_test.rb
minitest-around-0.4.0 test/nested_test.rb
minitest-around-0.3.2 test/nested_test.rb