Closed zsiegel closed 10 years ago
Awesome! I'd like it if you added a test case for this so we don't have any regressions. There are a couple of test in the ModelTest class which test that callbacks are called, add something there.
OK. I will take a look and add some tests.
Zachary Siegel zsiegel87@gmail.com On Feb 12, 2014 5:21 PM, "Emil Sjölander" notifications@github.com wrote:
Awesome! I'd like it if you added a test case for this so we don't have any regressions. There are a couple of test in the ModelTest class which test that callbacks are called, add something there.
Reply to this email directly or view it on GitHubhttps://github.com/emilsjolander/sprinkles/pull/42#issuecomment-34930945 .
Go ahead and take a look. I think I covered what we are trying to guard against here. I took the broken sample example from the Notes class.
instead of checking if m.createdAt is not null (this was never a problem), check so that the "created_at" value in the content values is non-null
Yes thats right! Good catch thanks!
Great work! i'll make a release now, should be in maven central sometime in the next couple of hours
Nice work!
ensures beforeCreate() is called before content values are grabbed