mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
13 lines
306 B
Ruby
13 lines
306 B
Ruby
|
require "rails_helper"
|
||
|
|
||
|
describe Jobs::ProcessEmail do
|
||
|
|
||
|
let(:mail) { "From: foo@bar.com\nTo: bar@foo.com\nSubject: FOO BAR\n\nFoo foo bar bar?" }
|
||
|
|
||
|
it "process an email without retry" do
|
||
|
Email::Processor.expects(:process!).with(mail, false)
|
||
|
Jobs::ProcessEmail.new.execute(mail: mail)
|
||
|
end
|
||
|
|
||
|
end
|