Commit 854299a
committed
Updated unit test to account for
With the introduction of `IsNew` validation in `Save()` (4da0d43), one of the unit tests failed due to an attempt to save a topic whose parent wasn't saved. This is easily fixed by assigning `Id`s to these topics, which is what we'd expect in a real-world scenario.
While I was at it, I updated the `Assert` statement to look for an exact match, which is more precise.IsNew validation in Save()
1 parent 4da0d43 commit 854299a
1 file changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
914 | | - | |
915 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
| |||
924 | 924 | | |
925 | 925 | | |
926 | 926 | | |
927 | | - | |
| 927 | + | |
928 | 928 | | |
929 | 929 | | |
930 | 930 | | |
| |||
0 commit comments