module RBS::UnitTest::TypeAssertions

TypeAssertions provides assertions to test RBS type definitions in unit test

class FooInstanceTest < Test::Unit::TestCase
  include RBS::UnitTest::TypeAssertions

  testing "::Foo"

  def test_foo
    assert_send_type(
      "(String) -> Integer",
      Foo.new, :foo, "hello"
    )
  end
end

The module provides four assertions:

See .testing and .library methods to set up RBS type testing.