Fix test welcome mailer
This commit is contained in:
parent
35a9d78d48
commit
f6d3e2d780
2 changed files with 3 additions and 3 deletions
|
@ -4,8 +4,8 @@ describe WelcomeMailer, type: :mailer do
|
|||
describe ".welcome_email" do
|
||||
let(:user) { create(:user) }
|
||||
subject(:subject) { described_class.welcome_email(user) }
|
||||
it { expect(subject.body).to match('https://tps.apientreprise.fr') }
|
||||
it { expect(subject.body).to match('https://tps.apientreprise.fr/users/password/new') }
|
||||
it { expect(subject.body).to match(root_url) }
|
||||
it { expect(subject.body).to match(new_user_password_url) }
|
||||
it { expect(subject.body).to match(user.email) }
|
||||
it { expect(subject.body).to match('Bienvenue sur la plateforme TPS') }
|
||||
it { expect(subject.body).to match('Nous vous remercions de vous être inscrit sur TPS. Pour mémoire, voici quelques informations utiles :')}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue