Simplify polymorphic routes in shared specs

Now we get rid of the "hierarchy" methods and use standard Rails methods
except in the routes definitions themselves.
This commit is contained in:
Javi Martín
2020-03-19 16:03:39 +01:00
parent ff93f5a591
commit 7563b7f4d1
8 changed files with 11 additions and 15 deletions

View File

@@ -7,7 +7,7 @@ describe "Admin proposals" do
it_behaves_like "admin_milestoneable",
:proposal,
"admin_proposal_path"
"admin_polymorphic_path"
context "Index" do
scenario "Search" do