discourse/spec/fabricators/incoming_email_fabricator.rb
Sam Saffron 4ea21fa2d0 DEV: use #frozen_string_literal: true on all spec
This change both speeds up specs (less strings to allocate) and helps catch
cases where methods in Discourse are mutating inputs.

Overall we will be migrating everything to use #frozen_string_literal: true
it will take a while, but this is the first and safest move in this direction
2019-04-30 10:27:42 +10:00

23 lines
561 B
Ruby

# frozen_string_literal: true
Fabricator(:incoming_email) do
message_id "12345@example.com"
subject "Hello world"
from_address "foo@example.com"
to_addresses "someone@else.com"
raw <<~RAW
Return-Path: <foo@example.com>
From: Foo <foo@example.com>
To: someone@else.com
Subject: Hello world
Date: Fri, 15 Jan 2016 00:12:43 +0100
Message-ID: <12345@example.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
The body contains "Hello world" too.
RAW
end