discourse/spec/components/email/incoming_email_spec.rb
Robin Ward e29f4a3496 Work in Progress: Reply By Email:
- Add support classes and settings to enable reply by email
- Split out Email builder to be more OO, add many specs
2013-06-13 12:39:56 -04:00

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