Last active
November 11, 2016 22:20
This file contains 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
# spec/models/user_spec.rb | |
require 'rails_helper' | |
RSpec.describe User, type: :model do | |
it { should validate_presence_of(:email) } | |
it { should validate_presence_of(:name) } | |
it { should validate_uniqueness_of(:email) } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment