summaryrefslogtreecommitdiff
path: root/src/test/fixtures/message.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/fixtures/message.rs')
-rw-r--r--src/test/fixtures/message.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/test/fixtures/message.rs b/src/test/fixtures/message.rs
index 2254915..03f8072 100644
--- a/src/test/fixtures/message.rs
+++ b/src/test/fixtures/message.rs
@@ -2,19 +2,24 @@ use faker_rand::lorem::Paragraphs;
use crate::{
app::App,
- channel::Channel,
clock::RequestedAt,
+ conversation::Conversation,
message::{self, Body, Message},
user::User,
};
-pub async fn send(app: &App, channel: &Channel, sender: &User, sent_at: &RequestedAt) -> Message {
+pub async fn send(
+ app: &App,
+ conversation: &Conversation,
+ sender: &User,
+ sent_at: &RequestedAt,
+) -> Message {
let body = propose();
app.messages()
- .send(&channel.id, sender, sent_at, &body)
+ .send(&conversation.id, sender, sent_at, &body)
.await
- .expect("should succeed if the channel exists")
+ .expect("should succeed if the conversation exists")
}
pub fn propose() -> Body {