mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
Reenable skipped Email::Receiver
spec.
This commit is contained in:
parent
4dbe0280fb
commit
0ab0c82f11
2 changed files with 11 additions and 2 deletions
|
@ -47,8 +47,16 @@ describe Email::Receiver do
|
||||||
expect { process(:blocked_sender) }.to raise_error(Email::Receiver::BlockedUserError)
|
expect { process(:blocked_sender) }.to raise_error(Email::Receiver::BlockedUserError)
|
||||||
end
|
end
|
||||||
|
|
||||||
skip "doesn't raise an InactiveUserError when the sender is staged" do
|
it "doesn't raise an InactiveUserError when the sender is staged" do
|
||||||
Fabricate(:user, email: "staged@bar.com", active: false, staged: true)
|
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
|
expect { process(:staged_sender) }.not_to raise_error
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
1
spec/fixtures/emails/staged_sender.eml
vendored
1
spec/fixtures/emails/staged_sender.eml
vendored
|
@ -1,5 +1,6 @@
|
||||||
Return-Path: <staged@bar.com>
|
Return-Path: <staged@bar.com>
|
||||||
From: Foo Bar <staged@bar.com>
|
From: Foo Bar <staged@bar.com>
|
||||||
|
To: reply+aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa@bar.com
|
||||||
Date: Fri, 15 Jan 2016 00:12:43 +0100
|
Date: Fri, 15 Jan 2016 00:12:43 +0100
|
||||||
Message-ID: <39@foo.bar.mail>
|
Message-ID: <39@foo.bar.mail>
|
||||||
Mime-Version: 1.0
|
Mime-Version: 1.0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue