Make ls status non-flag argument
This commit is contained in:
+6
-8
@@ -94,9 +94,7 @@ fn ls_with_status_filters_tickets() {
|
||||
create_ticket(&worklane, "reviewing", "Feature C", "charlie", "2026-08-01");
|
||||
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
cmd.current_dir(&temp.path())
|
||||
.arg("ls")
|
||||
.args(["--status", "committed"]);
|
||||
cmd.current_dir(&temp.path()).arg("ls").args(["committed"]);
|
||||
|
||||
cmd.assert().success();
|
||||
|
||||
@@ -111,7 +109,7 @@ fn ls_with_invalid_status_fails() {
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
cmd.current_dir(&temp.path())
|
||||
.arg("ls")
|
||||
.args(["--status", "nonexistent"])
|
||||
.args(["nonexistent"])
|
||||
.assert()
|
||||
.failure();
|
||||
}
|
||||
@@ -128,7 +126,7 @@ fn ls_listed_tickets_sorted_alphabetically() {
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
cmd.current_dir(&temp.path())
|
||||
.arg("ls")
|
||||
.args(["--status", "backlog"])
|
||||
.args(["backlog"])
|
||||
.assert()
|
||||
.success();
|
||||
|
||||
@@ -144,13 +142,13 @@ fn ls_listed_tickets_sorted_alphabetically() {
|
||||
#[test]
|
||||
fn ls_empty_status_shows_message() {
|
||||
let temp = TempDir::new().unwrap();
|
||||
let worklane = setup_worklane(&temp);
|
||||
let _worklane = setup_worklane(&temp);
|
||||
|
||||
// Intentionally leave "done" empty
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
cmd.current_dir(&temp.path())
|
||||
.arg("ls")
|
||||
.args(["--status", "done"])
|
||||
.args(["done"])
|
||||
.assert()
|
||||
.success();
|
||||
|
||||
@@ -168,7 +166,7 @@ fn ls_displays_owner_and_due() {
|
||||
let mut cmd = Command::cargo_bin(BIN_NAME).unwrap();
|
||||
cmd.current_dir(&temp.path())
|
||||
.arg("ls")
|
||||
.args(["--status", "backlog"])
|
||||
.args(["backlog"])
|
||||
.assert()
|
||||
.success();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user