|
|
@ -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 |
|
|
|