```ruby
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
```

Add new User unit test to check uniqueness of email
user
```ruby
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
```
assistant