require 'rails_helper'

describe User do
  xit "should be associated with picks" do
    user = User.new(:picks => nil)
    user.should_not be_valid
  end

  it "is invalid without an email address" do
    user = User.new(email: nil)
    user.valid?
    expect(User.all).not_to include user
  end
end

require 'rails_helper'

describe User do
  xit "should be associated with picks" do
    user = User.new(:picks => nil)
    user.should_not be_valid
  end

  it "is invalid without an email address" do
    user = User.new(
      username:"honeybadger",
      password_digest: "ilikedacoco",
      email: nil)
    user.valid?
    expect(User.all).not_to include user
  end
end

Edit test to make sure it passes because email was missing.
Edit test to make sure it passes because email was missing.
