mirror of
https://github.com/discourse/discourse.git
synced 2024-12-18 16:23:46 +08:00
0a5f548635
As part of this move, we are also renaming `discourse-chat` to `chat`.
20 lines
438 B
Ruby
20 lines
438 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "rails_helper"
|
|
|
|
describe DeletedChatUser do
|
|
describe "#username" do
|
|
it "returns a default username" do
|
|
expect(subject.username).to eq(I18n.t("chat.deleted_chat_username"))
|
|
end
|
|
end
|
|
|
|
describe "#avatar_template" do
|
|
it "returns a default path" do
|
|
expect(subject.avatar_template).to eq(
|
|
"/plugins/chat/images/deleted-chat-user-avatar.png",
|
|
)
|
|
end
|
|
end
|
|
end
|