mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 04:40:03 +08:00
18 lines
447 B
Ruby
18 lines
447 B
Ruby
# frozen_string_literal: true
|
|
|
|
describe Chat::NullUser do
|
|
subject(:null_user) { described_class.new }
|
|
|
|
describe "#username" do
|
|
it "returns a default username" do
|
|
expect(null_user.username).to eq(I18n.t("chat.deleted_chat_username"))
|
|
end
|
|
end
|
|
|
|
describe "#avatar_template" do
|
|
it "returns a default path" do
|
|
expect(null_user.avatar_template).to eq("/plugins/chat/images/deleted-chat-user-avatar.png")
|
|
end
|
|
end
|
|
end
|