spec/extensions/auto_validations_spec.rb in sequel-4.47.0 vs spec/extensions/auto_validations_spec.rb in sequel-4.48.0
- old
+ new
@@ -96,9 +96,11 @@
it "should allow skipping validations by type" do
@c = Class.new(@c)
@m = @c.new
@c.skip_auto_validations(:not_null)
@m.valid?.must_equal true
+ @m.nnd = nil
+ @m.valid?.must_equal true
@m.set(:d=>'/', :num=>'a', :name=>'1')
@m.valid?.must_equal false
@m.errors.must_equal(:d=>["is not a valid date"], :num=>["is not a valid integer"])