🐛 fix(eol_rule): correct rule description in to_string method

- fix the inaccurate description in the `to_string` method for `EolRule`
- correct the description to properly display that the rule moves the message to trash
This commit is contained in:
Jeremiah Russell
2025-10-08 12:16:20 +01:00
committed by Jeremiah Russell
parent 0bca3ed6f9
commit b47629d076

View File

@@ -100,7 +100,7 @@ mod test {
let mut rule = EolRule::new(1); let mut rule = EolRule::new(1);
rule.set_retention(retention); rule.set_retention(retention);
assert_eq!( assert_eq!(
"Rule #1 is active on retention/5-years and applies when the message is 5 years old." "Rule #1 is active on retention/5-years and moves the message to trash is 5 years old."
.to_string(), .to_string(),
rule.to_string() rule.to_string()
); );
@@ -112,7 +112,7 @@ mod test {
let mut rule = EolRule::new(2); let mut rule = EolRule::new(2);
rule.set_retention(retention); rule.set_retention(retention);
assert_eq!( assert_eq!(
"Rule #2 is active on retention/1-months and applies when the message is 1 month old." "Rule #2 is active on retention/1-months and moves the message to trash is 1 month old."
.to_string(), .to_string(),
rule.to_string() rule.to_string()
); );
@@ -124,7 +124,7 @@ mod test {
let mut rule = EolRule::new(3); let mut rule = EolRule::new(3);
rule.set_retention(retention); rule.set_retention(retention);
assert_eq!( assert_eq!(
"Rule #3 is active on retention/13-weeks and applies when the message is 13 weeks old." "Rule #3 is active on retention/13-weeks and moves the message to trash is 13 weeks old."
.to_string(), .to_string(),
rule.to_string() rule.to_string()
); );
@@ -136,7 +136,7 @@ mod test {
let mut rule = EolRule::new(4); let mut rule = EolRule::new(4);
rule.set_retention(retention); rule.set_retention(retention);
assert_eq!( assert_eq!(
"Rule #4 is active on retention/365-days and applies when the message is 365 days old." "Rule #4 is active on retention/365-days and moves the message to trash is 365 days old."
.to_string(), .to_string(),
rule.to_string() rule.to_string()
); );