huskies: merge 961
This commit is contained in:
@@ -187,7 +187,7 @@ fn create_bug_file_writes_correct_content() {
|
||||
);
|
||||
|
||||
// Check content exists (either in DB or filesystem).
|
||||
let contents = crate::db::read_content(&bug_id)
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&bug_id))
|
||||
.or_else(|| {
|
||||
let filepath = tmp
|
||||
.path()
|
||||
@@ -273,7 +273,8 @@ fn create_spike_file_writes_correct_content() {
|
||||
"spike ID must be numeric-only, got: {spike_id}"
|
||||
);
|
||||
|
||||
let contents = crate::db::read_content(&spike_id).expect("spike content should exist");
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&spike_id))
|
||||
.expect("spike content should exist");
|
||||
|
||||
assert!(
|
||||
contents.starts_with("---\ntype: spike\nname: \"Filesystem Watcher Architecture\"\n---"),
|
||||
@@ -305,7 +306,7 @@ fn create_spike_file_uses_description_when_provided() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&spike_id)
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&spike_id))
|
||||
.or_else(|| {
|
||||
let filepath = tmp
|
||||
.path()
|
||||
@@ -328,7 +329,7 @@ fn create_spike_file_uses_placeholder_when_no_description() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&spike_id)
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&spike_id))
|
||||
.or_else(|| {
|
||||
let filepath = tmp
|
||||
.path()
|
||||
@@ -437,7 +438,7 @@ fn create_bug_file_without_depends_on_omits_field() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&bug_id)
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&bug_id))
|
||||
.or_else(|| {
|
||||
let filepath = tmp
|
||||
.path()
|
||||
@@ -485,7 +486,7 @@ fn create_refactor_file_without_depends_on_omits_field() {
|
||||
)
|
||||
.unwrap();
|
||||
|
||||
let contents = crate::db::read_content(&refactor_id)
|
||||
let contents = crate::db::read_content(crate::db::ContentKey::Story(&refactor_id))
|
||||
.or_else(|| {
|
||||
let filepath = tmp
|
||||
.path()
|
||||
|
||||
Reference in New Issue
Block a user