Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Bug Repo: DummyDynamicScope should never be used for backref storage
- require 'rubygems'
- require 'dm-core'
- require 'dm-validations'
- nv = DataMapper::Validate::NumericValidator.new("field_name",{})
- 10.times do # 5.times works
- nv.send(:validate_with, :integer, 0, [])
- [ :gt, :lt, :gte, :lte, :eq, :ne ].each do |validation_type|
- nv.send(:validate_with, validation_type, 0, [])
- end
- end
Add Comment
Please, Sign In to add comment