test/unit/schemacop/v3/node_test.rb in schemacop-3.0.15 vs test/unit/schemacop/v3/node_test.rb in schemacop-3.0.16

- old
+ new

@@ -179,8 +179,16 @@ def test_node_no_children @schema = Schemacop::Schema3.new assert_equal(@schema.root.children, []) end + + def test_default_options + Schemacop.v3_default_options = { cast_str: true }.freeze + schema :number + assert_cast('1', 1) + ensure + Schemacop.v3_default_options = {} + end end end end