3 ms·
I imagine it wouldn't be too hard to build up your own data generators for Rails models (or other entities).
by parentheses 2y ago
I imagine it wouldn't be too hard to build up your own data generators for Rails models (or other entities).
- ohbarye 2y agoYeah, the easiest way is to generate attributes and instantiate any Rails model like the one below: Pbt.assert do Pbt.property(name: Pbt.printable_string, age: Pbt.integer(min: 0, max: 100)) do |name:, age:| user = User.new(name: name, age: age) # write your test here end end