I am using factories as my test data and one of the fields in my factory uses Faker.Person.last_name() to generate the last names. But I noticed that my test fails whenever the last name is in a format like these “O’Henry”, “D’Souza”.
In my test file I have this, render_change() =~ "can't be blank"
HTML entities are used to avoid typing symbols and to not break any engine that might parse your document, since some characters are reserved to HTML, one of them being the single quotes ', which can be typed as ' or even more portable '.