Last active
December 23, 2015 10:09
-
-
Save cherring/6618953 to your computer and use it in GitHub Desktop.
Validation Test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # TO test that a model needs a name | |
| user = User.build # Or however you make models in tests | |
| user.first_name = nil | |
| user.should_not be_valid |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment