   end
 
   test "PagesController GET index" do
-    conn = request(:get, page_path(Blog.Endpoint, :index))
+    conn = request(:get, page_path(Endpoint, :index))
     assert conn.status == 302
     assert conn.state == :sent
   end
 
   test "RegistrationsController GET new" do
-    conn = create_conn(:get, registrations_path(Blog.Endpoint, :new))
+    conn = create_conn(:get, registrations_path(Endpoint, :new))
     should_be_unauthenticated!(conn)
     conn = request(conn)
 

  end

  test "PostsController DELETE delete" do
    conn = request(:delete, posts_path(Blog.Endpoint, :delete, create_post.id))
    assert Repo.all(Post) == []
    assert conn.status == 302
    assert conn.state == :sent

  end

  test "PostsController GET index" do
    conn = request(:get, posts_path(Endpoint, :index))
    assert conn.status == 200
    assert conn.state == :sent
  end

  test "PostsController GET new" do
    conn = create_conn(:get, posts_path(Endpoint, :new))
    should_be_authenticated!(conn)

    conn = sign_in(conn, create_user)
