Reenable skipped `Email::Receiver` spec.

This commit is contained in:
Guo Xiang Tan 2017-07-24 22:25:26 +09:00
parent 4dbe0280fb
commit 0ab0c82f11
2 changed files with 11 additions and 2 deletions

View File

@ -47,8 +47,16 @@ describe Email::Receiver do
expect { process(:blocked_sender) }.to raise_error(Email::Receiver::BlockedUserError)
end
skip "doesn't raise an InactiveUserError when the sender is staged" do
Fabricate(:user, email: "staged@bar.com", active: false, staged: true)
it "doesn't raise an InactiveUserError when the sender is staged" do
user = Fabricate(:user, email: "staged@bar.com", active: false, staged: true)
email_log = Fabricate(:email_log,
to_address: 'reply+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@bar.com',
reply_key: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
user: user,
post: Fabricate(:post)
)
expect { process(:staged_sender) }.not_to raise_error
end

View File

@ -1,5 +1,6 @@
Return-Path: <staged@bar.com>
From: Foo Bar <staged@bar.com>
To: reply+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@bar.com
Date: Fri, 15 Jan 2016 00:12:43 +0100
Message-ID: <39@foo.bar.mail>
Mime-Version: 1.0