docbrown/spec/mailers/shared_examples/renders_proper_email_headers.rb
Anna Buianova 26592a3a9c
Removing Settings::General.email_addresses (#13958)
* 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
2021-06-11 12:34:34 +03:00

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