Skip to content

Commit

Permalink
Update RequestMailerPreview
Browse files Browse the repository at this point in the history
Ensure incoming message isn't reparsed. This will break with this mocked
data. Needed for WDTK theme.

See: mysociety/whatdotheyknow-theme#1902
  • Loading branch information
gbp committed Oct 21, 2024
1 parent d4ff68f commit 02a8c2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion spec/mailers/previews/request_mailer_preview.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ def another_user
def incoming_message
IncomingMessage.new(
id: 123,
info_request: info_request
info_request: info_request,
raw_email: RawEmail.new,
last_parsed: Time.now,
sent_at: Time.now
)
end

Expand Down

0 comments on commit 02a8c2b

Please sign in to comment.