Fix flagging/unflagging in the admin section

We weren't adding the HTML id our JavaScript expects, and so the page
didn't update the flag element.
This commit is contained in:
Javi Martín
2020-07-07 21:45:40 +02:00
parent 31b65679c3
commit 4f30720593
3 changed files with 14 additions and 3 deletions

View File

@@ -6,6 +6,8 @@ describe "Admin debates" do
login_as(admin.user)
end
it_behaves_like "flaggable", :debate, admin: true
scenario "Index" do
create(:debate, title: "Best beaches")