Skip to content

Commit 95baad4

Browse files
authored
Update user_mailer_spec.rb
1 parent 9017948 commit 95baad4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/mailers/user_mailer_spec.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
end
3030

3131
it "includes the name of the person who re-assigned the lead in the body" do
32-
expect(mail.body.encoded).to match("Bob")
32+
expect(mail.body.encoded).to include("Bob")
3333
end
3434

3535
it "includes link to the lead in the body" do
36-
expect(mail.body.encoded).to match("http://www.example.com/accounts/16")
36+
expect(mail.body.encoded).to include("http://www.example.com/accounts/16")
3737
end
3838
end
3939

@@ -54,11 +54,11 @@
5454
end
5555

5656
it "includes the name of the person who re-assigned the lead in the body" do
57-
expect(mail.body.encoded).to match("Bob")
57+
expect(mail.body.encoded).to include("Bob")
5858
end
5959

6060
it "includes link to the lead in the body" do
61-
expect(mail.body.encoded).to match("http://www.example.com/contacts/56")
61+
expect(mail.body.encoded).to include("http://www.example.com/contacts/56")
6262
end
6363
end
6464

@@ -79,11 +79,11 @@
7979
end
8080

8181
it "includes the name of the person who re-assigned the lead in the body" do
82-
expect(mail.body.encoded).to match("Bob")
82+
expect(mail.body.encoded).to include("Bob")
8383
end
8484

8585
it "includes link to the lead in the body" do
86-
expect(mail.body.encoded).to match("http://www.example.com/leads/42")
86+
expect(mail.body.encoded).to include("http://www.example.com/leads/42")
8787
end
8888
end
8989

0 commit comments

Comments
 (0)