huskies: merge 872
This commit is contained in:
@@ -246,8 +246,14 @@ fn create_bug_file_uses_default_acceptance_criterion() {
|
||||
fn create_spike_file_writes_correct_content() {
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
|
||||
let spike_id =
|
||||
create_spike_file(tmp.path(), "Filesystem Watcher Architecture", None, &[]).unwrap();
|
||||
let spike_id = create_spike_file(
|
||||
tmp.path(),
|
||||
"Filesystem Watcher Architecture",
|
||||
None,
|
||||
&[],
|
||||
None,
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
assert!(
|
||||
spike_id.chars().all(|c| c.is_ascii_digit()),
|
||||
@@ -278,7 +284,7 @@ fn create_spike_file_uses_description_when_provided() {
|
||||
let description = "What is the best approach for watching filesystem events?";
|
||||
|
||||
let spike_id =
|
||||
create_spike_file(tmp.path(), "FS Watcher Spike", Some(description), &[]).unwrap();
|
||||
create_spike_file(tmp.path(), "FS Watcher Spike", Some(description), &[], None).unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&spike_id)
|
||||
.or_else(|| {
|
||||
@@ -294,7 +300,7 @@ fn create_spike_file_uses_description_when_provided() {
|
||||
#[test]
|
||||
fn create_spike_file_uses_placeholder_when_no_description() {
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
let spike_id = create_spike_file(tmp.path(), "My Spike", None, &[]).unwrap();
|
||||
let spike_id = create_spike_file(tmp.path(), "My Spike", None, &[], None).unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&spike_id)
|
||||
.or_else(|| {
|
||||
@@ -310,7 +316,7 @@ fn create_spike_file_uses_placeholder_when_no_description() {
|
||||
#[test]
|
||||
fn create_spike_file_rejects_empty_name() {
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
let result = create_spike_file(tmp.path(), "!!!", None, &[]);
|
||||
let result = create_spike_file(tmp.path(), "!!!", None, &[], None);
|
||||
assert!(result.is_err());
|
||||
assert!(result.unwrap_err().contains("alphanumeric"));
|
||||
}
|
||||
@@ -319,7 +325,7 @@ fn create_spike_file_rejects_empty_name() {
|
||||
fn create_spike_file_with_special_chars_in_name_produces_valid_yaml() {
|
||||
let tmp = tempfile::tempdir().unwrap();
|
||||
let name = "Spike: compare \"fast\" vs slow encoders";
|
||||
let result = create_spike_file(tmp.path(), name, None, &[]);
|
||||
let result = create_spike_file(tmp.path(), name, None, &[], None);
|
||||
assert!(result.is_ok(), "create_spike_file failed: {result:?}");
|
||||
|
||||
let spike_id = result.unwrap();
|
||||
@@ -345,7 +351,7 @@ fn create_spike_file_increments_from_existing_items() {
|
||||
"---\nname: Existing\n---\n",
|
||||
);
|
||||
|
||||
let spike_id = create_spike_file(tmp.path(), "My Spike", None, &[]).unwrap();
|
||||
let spike_id = create_spike_file(tmp.path(), "My Spike", None, &[], None).unwrap();
|
||||
assert!(
|
||||
spike_id.chars().all(|c| c.is_ascii_digit()),
|
||||
"spike ID must be numeric-only, got: {spike_id}"
|
||||
|
||||
Reference in New Issue
Block a user