mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 00:43:43 +08:00
e29f4a3496
- 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
|