This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/spec/models/deleted_chat_user_spec.rb
2023-01-07 11:11:37 +00:00

18 lines
421 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