aboutsummaryrefslogtreecommitdiff
path: root/src/tests.rs
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2022-07-30 08:58:19 +0200
committerMartin Fischer <martin@push-f.com>2022-07-30 08:58:19 +0200
commite9532cfbf9b125db3e0d501da1b2d678713b55bb (patch)
treeb55929645fb6a6293787c258b2642f58aff4a7b7 /src/tests.rs
parent8f3eafb32cb90bb9b3c1828a3f2d60a098efd5ff (diff)
fix regression: allow creation of branches
Diffstat (limited to 'src/tests.rs')
-rw-r--r--src/tests.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/tests.rs b/src/tests.rs
index 3eb71ec..1dc64ec 100644
--- a/src/tests.rs
+++ b/src/tests.rs
@@ -98,7 +98,12 @@ async fn test_missing_branch() {
.unwrap(),
)
.await;
- assert_eq!(res.status(), 404); // branch not found
+ assert_eq!(res.status(), 200);
+ assert!(res
+ .into_body()
+ .into_text()
+ .await
+ .contains("create files by editing the URL"));
- // TODO: create commit with file and test that it is retrievable
+ // TODO: create file and test that it is retrievable
}