* Replaced Settings::General.email_addresses with Forem.email * Removed Settings::General.email_addresses remainders * Fixed schema.rb * Remove Settings::General.email_addresses record * Fixed label for default email
11 lines
393 B
Ruby
11 lines
393 B
Ruby
RSpec.shared_examples "#renders_proper_email_headers" do
|
|
it "renders proper sender" do
|
|
expect(email.from).to eq([ForemInstance.email])
|
|
expected_from = "#{Settings::Community.community_name} <#{ForemInstance.email}>"
|
|
expect(email["from"].value).to eq(expected_from)
|
|
end
|
|
|
|
it "renders proper reply_to" do
|
|
expect(email["reply_to"].value).to eq(ForemInstance.email)
|
|
end
|
|
end
|