aboutsummaryrefslogtreecommitdiffstats
path: root/tests/qrcode.rs
diff options
context:
space:
mode:
authorAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2021-08-26 15:38:13 +0000
committerAli MJ Al-Nasrawy <alimjalnasrawy@gmail.com>2021-08-26 15:38:13 +0000
commit8dad9f620572ab1371f93bcdd10c8d2e8d3686ec (patch)
tree89439bc8e5c772d95996542e992d95f8b96297a4 /tests/qrcode.rs
parentaddress comments (diff)
downloadminiserve-8dad9f620572ab1371f93bcdd10c8d2e8d3686ec.tar.gz
miniserve-8dad9f620572ab1371f93bcdd10c8d2e8d3686ec.zip
new partial-injection syntax
Diffstat (limited to 'tests/qrcode.rs')
-rw-r--r--tests/qrcode.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/qrcode.rs b/tests/qrcode.rs
index e8a4153..a9c27fe 100644
--- a/tests/qrcode.rs
+++ b/tests/qrcode.rs
@@ -16,8 +16,8 @@ fn hide_qrcode_element(server: TestServer) -> Result<(), Error> {
Ok(())
}
-#[rstest(server(&["-q"]))]
-fn show_qrcode_element(server: TestServer) -> Result<(), Error> {
+#[rstest]
+fn show_qrcode_element(#[with(&["-q"])] server: TestServer) -> Result<(), Error> {
let body = reqwest::blocking::get(server.url())?.error_for_status()?;
let parsed = Document::from_read(body)?;
assert!(parsed.find(Attr("id", "qrcode")).next().is_some());