Rails の ActiveSupport::TestCase を使っているとして、サクッとミニマムにやりたい。 minitest-around を使うと、以下のような around メソッドを定義することで setup/teardown をセットで実行できる。 require "test_helper" require 'minitest/around/unit' class CatTest < ActiveSupport::TestCase def around(&block) p "konnichi nyan" block.call p "sayouna nyan" end def test_nyan # ... end end でも、なんとなく ActiveSupport::TestCase が用意している setup, teardown と揃えてDSL風に使いたい。 requir