adds controller check for anonymous votes

This commit is contained in:
Juanjo Bazán
2015-08-31 14:51:46 +02:00
parent 3a15895617
commit bbf96259fc
6 changed files with 26 additions and 5 deletions

View File

@@ -81,7 +81,7 @@ describe Debate do
describe "#votable_by?" do
let(:debate) { create(:debate) }
before(:all) do
before(:each) do
Setting.find_by(key: "max_ratio_anon_votes_on_debates").update(value: 50)
end