エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
Minitest の Unit style で DSL 風な around ヘルパーを定義する - upinetree's memo
記事へのコメント1件
- 人気コメント
- 新着コメント

人気コメント算出アルゴリズムの一部にヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
関連記事
Minitest の Unit style で DSL 風な around ヘルパーを定義する - upinetree's memo
Rails の ActiveSupport::TestCase を使っているとして、サクッとミニマムにやりたい。 minitest-around... 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