diff --git a/test/stdlib/YAML_test.rb b/test/stdlib/YAML_test.rb new file mode 100644 index 0000000000..11552e439a --- /dev/null +++ b/test/stdlib/YAML_test.rb @@ -0,0 +1,12 @@ +require_relative "test_helper" +require 'yaml' + +class YAMLTest < Minitest::Test + include TypeAssertions + library 'yaml' + testing 'singleton(::YAML)' + + def test_load_accepts_string + assert_send_type "(String) -> untyped", YAML, :load, "abcde" + end +end