test/casting_test.rb in schemacop-2.4.0 vs test/casting_test.rb in schemacop-2.4.1
- old
+ new
@@ -49,10 +49,10 @@
req :foo, :array, :integer, cast: [String]
end
assert_equal(
{ foo: [1, 2, 3] },
- s.validate!(foo: ['1', '2', '3'])
+ s.validate!(foo: %w(1 2 3))
)
end
def test_check_after_cast
s = Schema.new do