Replace i18n destroy to delete
This commit is contained in:
@@ -91,7 +91,7 @@ feature "Admin budget groups" do
|
||||
visit admin_budget_groups_path(budget)
|
||||
within("#budget_group_#{group.id}") { click_link "Delete" }
|
||||
|
||||
expect(page).to have_content "You cannot destroy a Group that has associated headings"
|
||||
expect(page).to have_content "You cannot delete a Group that has associated headings"
|
||||
expect(page).to have_selector "#budget_group_#{group.id}"
|
||||
end
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ feature "Admin budget headings" do
|
||||
visit admin_budget_group_headings_path(budget, group)
|
||||
within("#budget_heading_#{heading.id}") { click_link "Delete" }
|
||||
|
||||
expect(page).to have_content "You cannot destroy a Heading that has associated investments"
|
||||
expect(page).to have_content "You cannot delete a Heading that has associated investments"
|
||||
expect(page).to have_selector "#budget_heading_#{heading.id}"
|
||||
end
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ feature "Admin budgets" do
|
||||
click_link "Edit budget"
|
||||
click_link "Delete budget"
|
||||
|
||||
expect(page).to have_content("You cannot destroy a budget that has associated investments")
|
||||
expect(page).to have_content("You cannot delete a budget that has associated investments")
|
||||
expect(page).to have_content("There is 1 budget")
|
||||
end
|
||||
|
||||
@@ -158,7 +158,7 @@ feature "Admin budgets" do
|
||||
visit edit_admin_budget_path(budget)
|
||||
click_link "Delete budget"
|
||||
|
||||
expect(page).to have_content("You cannot destroy a budget that has an associated poll")
|
||||
expect(page).to have_content("You cannot delete a budget that has an associated poll")
|
||||
expect(page).to have_content("There is 1 budget")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -40,7 +40,7 @@ feature "Admin tags" do
|
||||
expect(page).to have_content tag2.name
|
||||
|
||||
within("#tag_#{tag2.id}") do
|
||||
click_link "Destroy topic"
|
||||
click_link "Delete topic"
|
||||
end
|
||||
|
||||
visit admin_tags_path
|
||||
@@ -59,7 +59,7 @@ feature "Admin tags" do
|
||||
expect(page).to have_content tag2.name
|
||||
|
||||
within("#tag_#{tag2.id}") do
|
||||
click_link "Destroy topic"
|
||||
click_link "Delete topic"
|
||||
end
|
||||
|
||||
visit admin_tags_path
|
||||
|
||||
Reference in New Issue
Block a user