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:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user