Post #1554849
2026-02-21 17:47 UTC
@timriley FWIW, I've found providing a mix-in module to be a reasonable alternative to struggling with base class names. For example:
# frozen_string_literal: true
require "test_helper"
class TestHelloWorld < Minitest::Test
include Rooibos::TestHelper
def test_it_exits_with_ctrl_c
with_test_terminal do
inject_key(:ctrl_c)
Rooibos.run(HelloWorld)
assert true, "Should reach this point without hanging."
end
end
end
Replies (1)
-
@zenspider@ruby.social 2026-02-23 06:21
@kerrick @timriley I would suggest subclassing from your own test subclass, eg Hanami::Test, and have FeatureTest et al in the same namespace