changes rules for allowing debate votes
first 100 votes are allowed for unverified users
This commit is contained in:
@@ -35,7 +35,7 @@ describe DebatesController do
|
||||
|
||||
it 'should not allow vote if user is not allowed' do
|
||||
Setting.find_by(key: "max_ratio_anon_votes_on_debates").update(value: 0)
|
||||
debate = create(:debate)
|
||||
debate = create(:debate, cached_votes_total: 1000)
|
||||
sign_in create(:user)
|
||||
|
||||
expect do
|
||||
|
||||
Reference in New Issue
Block a user