Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosCodes committed Nov 3, 2020
1 parent a4fe702 commit 3031471
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/stdlib/YAML_test.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3031471

Please sign in to comment.