mirror of
https://github.com/discourse/discourse.git
synced 2025-02-26 06:33:26 +08:00

- Add support classes and settings to enable reply by email - Split out Email builder to be more OO, add many specs
17 lines
331 B
Ruby
17 lines
331 B
Ruby
require 'spec_helper'
|
|
require 'email/receiver'
|
|
|
|
describe Email::IncomingMessage do
|
|
|
|
let(:message) { Email::IncomingMessage.new("asdf", "hello\n\n> how are you?") }
|
|
|
|
it "returns the reply_key" do
|
|
expect(message.reply_key).to eq("asdf")
|
|
end
|
|
|
|
it "extracts the reply" do
|
|
expect(message.reply).to eq("hello")
|
|
end
|
|
|
|
end
|