-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: guessed mail don't go to holding pen
Now, the 'Guessing' mechanism will be used when a mail is received. If there is only one guess produced by this mechanism, then the mail will go straight to that guess's IR
- Loading branch information
1 parent
0383cfb
commit 6c455ef
Showing
5 changed files
with
113 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,26 +127,6 @@ | |
expect(page).to have_content "Only the authority can reply to this request" | ||
end | ||
end | ||
|
||
it "guesses a misdirected request" do | ||
info_request = FactoryBot.create(:info_request, | ||
allow_new_responses_from: 'authority_only', | ||
handle_rejected_responses: 'holding_pen') | ||
mail_to = "request-#{info_request.id}[email protected]" | ||
receive_incoming_mail('incoming-request-plain.email', email_to: mail_to) | ||
interesting_email = last_holding_pen_mail | ||
|
||
# now we add another message to the queue, which we're not interested in | ||
receive_incoming_mail('incoming-request-plain.email', | ||
email_to: info_request.incoming_email, | ||
email_from: "") | ||
expect(holding_pen_messages.length).to eq(2) | ||
using_session(@admin) do | ||
visit admin_raw_email_path interesting_email | ||
expect(page).to have_content "Could not identify the request" | ||
expect(page).to have_content info_request.title | ||
end | ||
end | ||
end | ||
|
||
describe 'generating an upload url' do | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters