test-check

ben 2019-05-09T09:40:20.025500Z

Right, so that’s some of them. I also have a couple with • read from the db (inserted in test migration) • call a fn to modify the data • read from the db again • check that it has been modified as expected Do you think this should follow the same pattern, @gfredericks? Thanks

2019-05-09T10:44:17.026200Z

@ben606 that's what I would do, yeah; do you reset the db from within the defspec also? I think you'd want to

ben 2019-05-09T10:46:31.026800Z

Yeah, it all takes place within a transaction, so none of the changes get persisted

2019-05-09T10:47:59.027200Z

that sounds good; the main thing dictating granularity is what things are dependent on what generated data

ben 2019-05-09T11:02:06.027500Z

makes sense. Thank you