Sha256: 334eea83a7d2c1cd0d15b59e342b20eccbd5172ccc7a28f4384ab2ac99f89cd5
Contents?: true
Size: 337 Bytes
Versions: 5
Compression:
Stored size: 337 Bytes
Contents
require 'test_helper' module Schemacop class ValidatorSymbolTest < Minitest::Test def test_basic s = Schema.new do type :symbol end assert_nil s.validate!(:good) assert_nil s.validate!('-+/'.to_sym) assert_verr { s.validate!('bad') } assert_verr { s.validate!(456) } end end end
Version data entries
5 entries across 5 versions & 1 rubygems