devukurup / quizzy-by-devukurup

0 stars 0 forks source link

Build User model #2

Closed devukurup closed 3 years ago

devukurup commented 3 years ago

Tests should cover the following assertions(Use Minitest):

Note:

def test_user_should_be_valid assert @user.valid? end

def test_invalid_user @user.first_name = "" assert_not @user.valid? assert_equal ["First name can't be blank"], @user.errors.full_messages end