-
-
Notifications
You must be signed in to change notification settings - Fork 910
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
Test the model to validate attribute ONLY on specific context, except default ones #963
Comments
This may be related to #904 -- I'll have to investigate this for sure. Regardless, though, the matcher is failing for some reason. Perhaps your model doesn't have the presence validation in question? |
Model has validation
|
Any progress on this? It's been a year and I'm still getting it. |
Same here, has anyone found the problem or a valid work around? |
I'm also having this problem. |
Same here - any news or workaround? |
There's no workaround for this, unfortunately -- it's a fatal flaw in how I ended up designing matchers-within-matchers. I had started work on this last year but put it on hold because it ended up ballooning into a pretty substantial change. Now that I've had some time to focus on other things, I've started to really dig into this again. There's light at the end of the tunnel but it will be some more time until I reach an end for this. I think it will be worth it, though. Thanks for your patience. |
Thanks a lot for the update. 💪 and 🍺 |
I need to write failing test for activerecord model. It ensures, that a validation runs ONLY on specific context, and not on default ones. I wrote:
But it throws me an error:
How to figure out this situation?
The text was updated successfully, but these errors were encountered: