Browse Source

Email content is ascii encoded

pull/81/head
baarkerlounger 3 years ago
parent
commit
20f564ee52
  1. 5
      spec/requests/users/passwords_controller_spec.rb

5
spec/requests/users/passwords_controller_spec.rb

@ -40,8 +40,9 @@ RSpec.describe Users::PasswordsController, type: :request do
it "should contain the correct email" do it "should contain the correct email" do
post "/users/password", params: params post "/users/password", params: params
follow_redirect! follow_redirect!
binding.pry email_ascii_content = ActionMailer::Base.deliveries.last.body.raw_source
expect ( ActionMailer::Base.deliveries.last.body.raw_source ).to contain( email ) email_content = email_ascii_content.encode("ASCII", "UTF-8", undef: :replace)
expect(email_content).to match(email)
end end
end end
end end

Loading…
Cancel
Save