You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.
Hey @timriley, just started to explore workshop-app and i liked it! 1-types-validation: I guess there is a missing spec for this exercise:
Add a high-level rule to validate that published_at is filled only when status is set to "published"
like so:
it"rejects published_at if status is not 'published'"doresult=schema.({title: "my article",status: "draft",published_at: Time.now}))expect(result).tobe_failureexpect(result.messages[:published_at_then_published].length).toeq1end
Or maybe make it xit and left as optional to encourage to implement rspec example
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey @timriley, just started to explore workshop-app and i liked it!
1-types-validation
: I guess there is a missing spec for this exercise:like so:
Or maybe make it
xit
and left as optional to encourage to implement rspec exampleThe text was updated successfully, but these errors were encountered: