Code like expect(page.current_path).to eq(article_path article) gets autocorrected to
expect(page).to have_current_path(article_path article, ignore_query: true)
The correct form is
expect(page).to have_current_path article_path(article, ignore_query: true)
Code like
expect(page.current_path).to eq(article_path article)
gets autocorrected toexpect(page).to have_current_path(article_path article, ignore_query: true)
The correct form isexpect(page).to have_current_path article_path(article, ignore_query: true)