Skip to content

Commit

Permalink
Add output directory test
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasminocha committed Dec 28, 2024
1 parent 5711935 commit 7812ad2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/subcommand/torrent/create.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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! {
Expand Down

0 comments on commit 7812ad2

Please sign in to comment.