Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match have body text with special characters #182

Closed
IlkhamGaysin opened this issue Apr 29, 2016 · 1 comment
Closed

Match have body text with special characters #182

IlkhamGaysin opened this issue Apr 29, 2016 · 1 comment
Assignees

Comments

@IlkhamGaysin
Copy link

If in my factory user full name generate like ('Jermain O'Keefe') rspec test will be fall with follow message:

expected the body to contain "Jermain O'Keefe" but was "<p>Jermain O&#39;Keefe!</p>

Rspec story:

feature "Send notification" do
  subject { NotifyMailer.send_notify(user) }

  scenario "User gets notification" do
    expect(subject).to have_body_text(user.full_name)
  end
end
@mauro-oto
Copy link
Member

Closed by #183

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants