Cleanup Settings values modified after specs are run

This commit is contained in:
Bertocq
2017-05-30 00:55:53 +02:00
parent 16edbf15a2
commit 798b646135
23 changed files with 109 additions and 14 deletions

View File

@@ -22,6 +22,10 @@ describe DebatesController do
end
describe "Vote with too many anonymous votes" do
after do
Setting['max_ratio_anon_votes_on_debates'] = 50
end
it 'should allow vote if user is allowed' do
Setting["max_ratio_anon_votes_on_debates"] = 100
debate = create(:debate)