Skip to content
This repository has been archived by the owner on Jul 21, 2024. It is now read-only.

Chapter 10 Why using regexp? #52

Open
JunichiIto opened this issue Feb 11, 2018 · 0 comments
Open

Chapter 10 Why using regexp? #52

JunichiIto opened this issue Feb 11, 2018 · 0 comments

Comments

@JunichiIto
Copy link
Contributor

Chapter 10, page 177,

expect(mail.body).to match(/Hello #{user.first_name},/)

I am not sure why you used regexp here. I think using string is simpler:

expect(mail.body).to match "Hello #{user.first_name},"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants