Rename DbId to MbRef #242
@ -873,7 +873,9 @@ mod tests {
|
|||||||
|
|
||||||
// To clear the mb_ref we need the album_id to have the mb_ref to identify the correct album.
|
// To clear the mb_ref we need the album_id to have the mb_ref to identify the correct album.
|
||||||
album_id.set_mb_ref(AlbumMbRef::CannotHaveMbid);
|
album_id.set_mb_ref(AlbumMbRef::CannotHaveMbid);
|
||||||
assert!(music_hoard.clear_album_mb_ref(&artist_id, &album_id).is_ok());
|
assert!(music_hoard
|
||||||
|
.clear_album_mb_ref(&artist_id, &album_id)
|
||||||
|
.is_ok());
|
||||||
let album = &music_hoard.collection[0].albums[0];
|
let album = &music_hoard.collection[0].albums[0];
|
||||||
assert_eq!(album.meta.id.mb_ref, AlbumMbRef::None);
|
assert_eq!(album.meta.id.mb_ref, AlbumMbRef::None);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user