Function trillium_testing::methods::put

source ·
pub fn put(path: impl Into<String>) -> TestConn
Expand description

Builds a new TestConn with the put http method and the provided path.

use trillium_testing::prelude::*;

let conn = put("/some/route").on(&());

assert_eq!(conn.method(), Method::Put);
assert_eq!(conn.path(), "/some/route");