Looking back at my question after coding rails for a year +, I now think that it is not necessary to refer to asset_url and even path_path from the capybara specification. As if I was trying to check the configuration. (oh young and naive)
Assets on the page can be checked with should have_selector("[src$='my_image.png']") . In addition, if it does not download files, it is better to leave such tests as representations.
Hooray!
PS Thanks for the answer @ tanzeeb-khalili. I think we met at CampJS a few months ago at the Gold Coast. Small world! =)
source share