Commit ac268674 authored by Douwe Maan's avatar Douwe Maan

Update spec.

parent e1eb09dd
......@@ -7,7 +7,7 @@ describe EmailReceiverWorker do
File.read(file_path)
end
let(:raw_message) { fixture_file('emails/valid_incoming.eml') }
let(:raw_message) { fixture_file('emails/valid_reply.eml') }
context "when reply by email is enabled" do
before do
......@@ -31,7 +31,7 @@ describe EmailReceiverWorker do
email = ActionMailer::Base.deliveries.last
expect(email).not_to be_nil
expect(email.to).to eq(["from@example.com"])
expect(email.to).to eq(["jake@adventuretime.ooo"])
expect(email.subject).to include("Rejected")
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment