test/unit/schemacop/v2/validator_symbol_test.rb in schemacop-3.0.16 vs test/unit/schemacop/v2/validator_symbol_test.rb in schemacop-3.0.17
- old
+ new
@@ -7,10 +7,10 @@
s = Schema.new do
type :symbol
end
assert_nothing_raised { s.validate!(:good) }
- assert_nothing_raised { s.validate!('-+/'.to_sym) }
+ assert_nothing_raised { s.validate!(:'-+/') }
assert_verr { s.validate!('bad') }
assert_verr { s.validate!(456) }
end
end
end