Skip to content
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

Author should not validate without last name #12

Open
swt2public opened this issue Nov 7, 2017 · 0 comments
Open

Author should not validate without last name #12

swt2public opened this issue Nov 7, 2017 · 0 comments

Comments

@swt2public
Copy link

Scenario

When creating an author without last name
Then validation should fail

Hints

What is the correct place to test this behavior, is it a model or a feature test?

You can learn about validations in this guide.

Error

Expected #<author id: nil, first_name: "alan", last_name: nil, homepage: "http://example.com", created_at: nil, updated_at: nil> not to be valid

Estimated progress: 40% complete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant