require 'rails_helper'

RSpec.describe User, :type => :model do
  before do
    Fabricate(:user)
  end

  it { should validate_presence_of :email }
  it { should validate_presence_of :password }
end

require 'rails_helper'

RSpec.describe User, :type => :model do
  before do
    Fabricate(:user)
  end

  it { should validate_presence_of :email }
  it { should validate_presence_of :password }
  it { should validate_uniqueness_of :email }
  
end

Add new User unit test to check uniqueness of email
Add new User unit test to check uniqueness of email
