defmodule AtomStyleTweaks.UserTest do
  use AtomStyleTweaks.ModelCase

  alias AtomStyleTweaksWeb.User

  @valid_attrs %{name: "an-admin-user", github_id: 12_345, site_admin: true, avatar_url: "https://example.com"}
  @invalid_attrs %{}

  test "changeset with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)
    assert changeset.valid?
  end

  test "changeset with invalid attributes" do
    changeset = User.changeset(%User{}, @invalid_attrs)
    refute changeset.valid?
  end

  test "user exists when it is in the database" do
    user = insert(:user)

    assert User.exists?(user.name)
  end

  test "user does not exist when it is not in the database" do
    user = build(:user)

    refute User.exists?(user.name)
  end
end

defmodule AtomStyleTweaks.UserTest do
  use AtomStyleTweaks.ModelCase

  alias AtomStyleTweaksWeb.User

  @valid_attrs %{name: "an-admin-user", github_id: 12_345, site_admin: true, avatar_url: "https://example.com/"}
  @invalid_attrs %{}

  test "changeset with valid attributes" do
    changeset = User.changeset(%User{}, @valid_attrs)
    assert changeset.valid?
  end

  test "changeset with invalid attributes" do
    changeset = User.changeset(%User{}, @invalid_attrs)
    refute changeset.valid?
  end

  test "user exists when it is in the database" do
    user = insert(:user)

    assert User.exists?(user.name)
  end

  test "user does not exist when it is not in the database" do
    user = build(:user)

    refute User.exists?(user.name)
  end
end

Update old tests for validate_url change
Update old tests for validate_url change

(Even though they're going to be ripped out when this is all done)

lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks