Sha256: 1d38cdde56981cb999b3b3ce38d9b0f7317afaf77b45177c99951166f3cdfdcf

Contents?: true

Size: 586 Bytes

Versions: 10

Compression:

Stored size: 586 Bytes

Contents

require_relative 'helper'
require 'minitest/around'

describe 'Outer' do
  let(:var) { [] }

  before do
    var << :before
  end
  after do
    var << :after
    var.must_equal [:before, :begin, :ibefore, :ibegin, :during, :iend, :iafter, :end, :after]
  end
  around do |test|
    var << :begin
    test.call
    var << :end
  end

  describe 'Inner' do
    before do
      var << :ibefore
    end
    after do
      var << :iafter
    end
    around do |test|
      var << :ibegin
      test.call
      var << :iend
    end
    it 'testing' do
      var << :during
    end
  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_spec.rb
plaid-14.12.1 vendor/bundle/ruby/3.0.0/gems/minitest-around-0.5.0/test/nested_spec.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_spec.rb
plaid-14.11.1 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_spec.rb
plaid-14.10.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_spec.rb
plaid-14.7.0 vendor/bundle/ruby/2.6.0/gems/minitest-around-0.5.0/test/nested_spec.rb
minitest-around-0.5.0 test/nested_spec.rb
minitest-around-0.4.1 test/nested_spec.rb
minitest-around-0.4.0 test/nested_spec.rb
minitest-around-0.3.2 test/nested_spec.rb