discourse/plugins/chat/spec/lib/chat_message_processor_spec.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
308 B
Ruby
Raw Normal View History

# frozen_string_literal: true
RSpec.describe Chat::ChatMessageProcessor do
fab!(:message) { Fabricate(:chat_message) }
it "cooks using the last_editor_id of the message" do
ChatMessage.expects(:cook).with(message.message, user_id: message.last_editor_id)
described_class.new(message)
end
end