Sha256: 3fa1296cfff416bebb6c54fbe35c96603d78e41910718bfb930cf713909f6b64
Contents?: true
Size: 445 Bytes
Versions: 27
Compression:
Stored size: 445 Bytes
Contents
require "test_helper" require "json_schema" describe JsonSchema::SchemaError do it "can print a message with a pointer" do schema = JsonSchema::Schema.new schema.fragment = "#" e = JsonSchema::SchemaError.new(schema, "problem", nil) assert_equal "#: problem", e.to_s end it "can print a message without a pointer" do e = JsonSchema::SchemaError.new(nil, "problem", nil) assert_equal "problem", e.to_s end end
Version data entries
27 entries across 27 versions & 2 rubygems