-
Notifications
You must be signed in to change notification settings - Fork 312
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Small fixes in MyModelViewModelTest #121
base: base
Are you sure you want to change the base?
Conversation
Thanks for your PR and thanks for the catch! Why |
Good question. If |
8b38367
to
b4579df
Compare
b4579df
to
0101d9a
Compare
Actually, it looks like the tests fail using |
@JoseAlcerreca any reason not to merge this in? |
Sorry, looking into it. |
Thanks, approved! @kworth this needs to be replicated in the multimodule branch as well. Do you want to do it? |
Ah, good point. I think I should be able to make time for that. I haven't looked at that branch at all yet. Hopefully it's not too divergent and will be a quick cherry-pick. |
As things are currently, the
MyModelViewModelTest
gives the impression of being a useful starting point, but ultimately leaves a lot to be desired. It has 2 tests with different names that have the same logic, and as soon as you go to update the second test to do what it says it does, theFakeMyModelRepository
implementation doesn't act as one would reasonably expect (you can calladdMyModel
all you want, but still the only thing that was ever emitted was an empty list).This PR aims to make the class more correct and helpful. Please see individual commits which should be self-explanatory.