diff --git a/src/subcommand/torrent/create.rs b/src/subcommand/torrent/create.rs index a505af7..2b9b0ed 100644 --- a/src/subcommand/torrent/create.rs +++ b/src/subcommand/torrent/create.rs @@ -1014,6 +1014,28 @@ mod tests { env.load_metainfo("x.torrent"); } + #[test] + fn destination_dir() { + let mut env = test_env! { + args: [ + "torrent", + "create", + "--input", + "foo", + "--output", + "bar", + "--announce", + "http://bar", + ], + tree: { + foo: "", + bar: {}, + }, + }; + env.assert_ok(); + env.load_metainfo("bar/foo.torrent"); + } + #[test] fn created_by_default() { let mut env = test_env! {