Reenable skipped `Email::Receiver` spec.
This commit is contained in:
parent
4dbe0280fb
commit
0ab0c82f11
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue