Sha256: a9d01cee6813c6a1f1113b506597520390e2b281babd43ac79c418a2c63d57ce
Contents?: true
Size: 453 Bytes
Versions: 7
Compression:
Stored size: 453 Bytes
Contents
require 'test_helper' class TestJsonSchemaParser < Minitest::Test def test_parse_file file_path = File.expand_path('test/doc/schemas/account_post_request_body.schema.json', Dir.pwd) result = Swagui::JsonSchemaParser.parse(file_path, 'PostAccount') assert_equal result.class, Swagui::JsonSchema assert_equal result.name, 'PostAccount' assert_equal result.models.size, 4 assert_equal result.models.first.class, Hash end end
Version data entries
7 entries across 7 versions & 1 rubygems