Skip to content

Commit 40553c1

Browse files
committed
Fix tests for 733619d
1 parent d30f2f4 commit 40553c1

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

tests/diff.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn backup_src() -> Result<()> {
4141
let diffit = || {
4242
let diff_run = cli_run(working_path, backup_path)
4343
.unwrap()
44-
.args(&["diff", "--metadata", "last"])
44+
.args(&["diff", "--metadata", "LAST"])
4545
.assert()
4646
.success();
4747
let diff_output = stdout(&diff_run).trim();

tests/dump.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ fn backup_src() -> Result<()> {
2929

3030
// Dump a directory (works like a non-recursive ls)
3131
let dump_src = cli_run(working_path, backup_path)?
32-
.args(&["dump", "last", "src"])
32+
.args(&["dump", "LAST", "src"])
3333
.assert()
3434
.success();
3535
let dump_src_output = stdout(&dump_src);
@@ -52,7 +52,7 @@ fn backup_src() -> Result<()> {
5252

5353
// Dump main.rs and compare it to the real deal
5454
let dump_main = cli_run(working_path, backup_path)?
55-
.args(&["dump", "last", "src/main.rs"])
55+
.args(&["dump", "LAST", "src/main.rs"])
5656
.assert()
5757
.success();
5858
let main_output = stdout(&dump_main);
@@ -61,21 +61,21 @@ fn backup_src() -> Result<()> {
6161

6262
// Cool, we dumped a directory and a file. Let's try some errors
6363
let mut fail = cli_run(working_path, backup_path)?
64-
.args(&["dump", "last", "src/nope.rs"])
64+
.args(&["dump", "LAST", "src/nope.rs"])
6565
.assert()
6666
.failure();
6767
let mut fail_output = stderr(&fail);
6868
assert!(fail_output.contains("Couldn't find src/nope.rs in the given snapshot"));
6969

7070
fail = cli_run(working_path, backup_path)?
71-
.args(&["dump", "last", "src/main.rs/nope"])
71+
.args(&["dump", "LAST", "src/main.rs/nope"])
7272
.assert()
7373
.failure();
7474
fail_output = stderr(&fail);
7575
assert!(fail_output.contains("src/main.rs is a file, not a directory"));
7676

7777
fail = cli_run(working_path, backup_path)?
78-
.args(&["dump", "last", "src/../src/main.rs"])
78+
.args(&["dump", "LAST", "src/../src/main.rs"])
7979
.assert()
8080
.failure();
8181
fail_output = stderr(&fail);

tests/restore.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ fn backup_src() -> Result<()> {
4141
let restoreit = || {
4242
let restore_run = cli_run(working_path, backup_path)
4343
.unwrap()
44-
.args(&["restore", "--delete", "--times", "--permissions", "last"])
44+
.args(&["restore", "--delete", "--times", "--permissions", "LAST"])
4545
.assert()
4646
.success();
4747
let restore_err = stderr(&restore_run).trim();

0 commit comments

Comments
 (0)