I have spec like this:
it 'contains Delete link' do
expect(page).to have_link('Delete', admin_disease_path(disease))
end
when I run specs it returns warning in the console:
Unused parameters passed to Capybara::Queries::SelectorQuery : ["/admin/diseases/913"]
How can I fix this?
expect(page).to have_link('Delete', href: admin_disease_path(disease))
From the documenting tests
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With