 
   test "updates chosen resource and redirects when data is valid", %{conn: conn} do
     project = Repo.insert! %Project{}
-    conn = put conn, project_path(conn, :update, project), project: @valid_attrs
+    attributes = unique_attributes()
+    conn = put conn, project_path(conn, :update, project), project: attributes
     assert redirected_to(conn) == project_path(conn, :show, project)
-    assert Repo.get_by(Project, @valid_attrs)
+    assert Repo.get_by(Project, attributes)
   end
 
   test "does not update chosen resource and renders errors when data is invalid", %{conn: conn} do

  alias BaumeisterWeb.Project
  @valid_attrs %{name: "some content", plugins: "some content", url: "some content"}
  @invalid_attrs %{}

  test "lists all entries on index", %{conn: conn} do
    conn = get conn, project_path(conn, :index)

  end

  test "creates resource and redirects when data is valid", %{conn: conn} do
    attributes = unique_attributes()
    conn = post conn, project_path(conn, :create), project: attributes
    assert redirected_to(conn) == project_path(conn, :index)
    assert Repo.get_by(Project, attributes)
  end

  test "does not create resource and renders errors when data is invalid", %{conn: conn} do
