Use Minitest::Test to remove more code.
Assert is great for yes/no questions.
Sometimes you can simplify more.
Even less code.

Is this more understandable?
Add license