huskies: merge 546_refactor_rename_bot_test_command_to_run_tests_to_avoid_eating_chat_messages
This commit is contained in:
@@ -137,8 +137,8 @@ mod tests {
|
||||
#[test]
|
||||
fn test_command_is_registered() {
|
||||
use super::super::commands;
|
||||
let found = commands().iter().any(|c| c.name == "test");
|
||||
assert!(found, "test command must be in the registry");
|
||||
let found = commands().iter().any(|c| c.name == "run_tests");
|
||||
assert!(found, "run_tests command must be in the registry");
|
||||
}
|
||||
|
||||
#[test]
|
||||
@@ -150,8 +150,8 @@ mod tests {
|
||||
);
|
||||
let output = result.unwrap();
|
||||
assert!(
|
||||
output.contains("test"),
|
||||
"help should list test command: {output}"
|
||||
output.contains("run_tests"),
|
||||
"help should list run_tests command: {output}"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -216,10 +216,10 @@ mod tests {
|
||||
ambient_rooms: &ambient,
|
||||
room_id: &room_id,
|
||||
};
|
||||
let result = super::super::try_handle_command(&dispatch, "@timmy test");
|
||||
let result = super::super::try_handle_command(&dispatch, "@timmy run_tests");
|
||||
assert!(
|
||||
result.is_some(),
|
||||
"test command must respond via dispatch (not fall through to LLM)"
|
||||
"run_tests command must respond via dispatch (not fall through to LLM)"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user