module RBS::UnitTest::WithAliases

WithAliases module provides with_*** methods that helps writing tests which passes convertible objects

include WithAliases

with_int do |i|
  # Yields Integer and RBS::UnitTest::Convertibles::ToInt
end

with_string.and_nil do |s|
  # Yields String, RBS::UnitTest::Convertibles::ToStr, and nil
end