Add assertion to polymorphic_routes_test.rb
#28073

bogdanvlviv wants to merge bogdanvlviv:routes-in-tests into rails:master

We do not currently have an analysis of these two commits