Skip to content
Snippets Groups Projects
Commit 095768be authored by Mark Lapierre's avatar Mark Lapierre
Browse files

Fix failing test

Optionally check for quotes and escape the name
parent 48feb671
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -49,7 +49,7 @@ module QA
 
Page::Project::Commit::Show.perform(&:select_email_patches)
 
expect(page).to have_content("From: #{@user.name} <#{@user.public_email}>")
expect(page).to have_content(/From: "?#{Regexp.escape(@user.name)}"? <#{@user.public_email}>/)
expect(page).to have_content('Subject: [PATCH] Add second file')
expect(page).to have_content('diff --git a/second b/second')
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment