Skip to content

Commit

Permalink
Change to have_text
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-stefano committed Jul 26, 2024
1 parent 51b9beb commit cce9f06
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,7 @@
end

it 'renders undergraduate content' do
expect(result.text.gsub(/\r?\n/, ' ').squeeze(' ').strip).to match(
/^Undergraduate Jim James/,
)
expect(result).to have_text('Undergraduate Jim James', normalize_ws: true)
expect(result).to have_css(
'section.app-application-card.app-application-card__undergraduate',
)
Expand Down

0 comments on commit cce9f06

Please sign in to comment.