pijul_controller_tests.rs
mod common;
pub use common::*;
use rocket::http::Status;
#[tokio::test]
async fn unauthenticated_apply_denied() {
let client = common::testing_client().await;
let db = rocket::State::get(&client.rocket()).expect("managed database");
let project = common::project(db).await;
let resp = client.post(format!("/{}/{}/.pijul?ABCD", project.owner(db).await.unwrap().name, project.name))
.dispatch().await;
assert_eq!(resp.status(), Status::NotFound);
}