Skip to content

Commit

Permalink
fix option for cli
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Mar 27, 2024
1 parent cd770f0 commit df7970a
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions tests/journey/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ fn fixture_begin_activity(dir_str: &String) -> TestResult<()> {
.args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
dir_str,
"begin",
"MyActivity",
Expand Down Expand Up @@ -77,7 +77,7 @@ fn test_begin_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"begin",
"MyActivity",
Expand All @@ -97,7 +97,7 @@ fn test_now_no_activities_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"now"
]));
Expand All @@ -115,7 +115,7 @@ fn test_now_with_active_activity_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"now"
]));
Expand All @@ -133,7 +133,7 @@ fn test_end_with_active_activity_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"end"
]));
Expand All @@ -151,7 +151,7 @@ fn test_hold_with_active_activity_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"hold"
]));
Expand All @@ -170,7 +170,7 @@ fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
.args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"hold",
])
Expand All @@ -179,7 +179,7 @@ fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"resume"
]));
Expand All @@ -198,7 +198,7 @@ fn test_adjust_activity_snapshot_passes() -> TestResult<()> {
.args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"adjust",
"--description",
Expand All @@ -211,7 +211,7 @@ fn test_adjust_activity_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&dir_str,
"now",
]));
Expand All @@ -228,7 +228,7 @@ fn test_reflect_from_to_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand All @@ -249,7 +249,7 @@ fn test_reflect_date_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--date",
Expand All @@ -267,7 +267,7 @@ fn test_reflect_today_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
]));
Expand All @@ -283,7 +283,7 @@ fn test_reflect_current_week_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"current-week",
Expand All @@ -300,7 +300,7 @@ fn test_reflect_current_month_snapshot_passes() -> TestResult<()> {
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"current-month",
Expand All @@ -318,7 +318,7 @@ fn test_reflect_from_to_filter_category_glob_front_snapshot_passes() -> TestResu
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand All @@ -341,7 +341,7 @@ fn test_reflect_from_to_filter_category_case_sensitive_snapshot_passes() -> Test
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand All @@ -365,7 +365,7 @@ fn test_reflect_from_to_filter_category_full_snapshot_passes() -> TestResult<()>
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand All @@ -388,7 +388,7 @@ fn test_reflect_from_to_filter_category_glob_back_snapshot_passes() -> TestResul
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand All @@ -412,7 +412,7 @@ fn test_reflect_from_to_filter_category_glob_back_case_sensitive_snapshot_passes
assert_cmd_snapshot!(StdCommand::new(env!("CARGO_BIN_EXE_pace")).args([
"--config",
"tests/fixtures/configs/pace.toml",
"--activity-log-file",
"--activity-log",
&activities,
"reflect",
"--from",
Expand Down

0 comments on commit df7970a

Please sign in to comment.