one more test

This commit is contained in:
Sam 2015-08-06 10:38:30 +10:00
parent bafdf9290d
commit e26688c112

View file

@ -212,6 +212,11 @@ describe NewPostManager do
with_check = NewPostManager.new(u,{first_post_checks: true})
expect(NewPostManager.user_needs_approval?(with_check)).to eq(true)
u.user_stat.post_count = 1
with_check_and_post = NewPostManager.new(u,{first_post_checks: true})
expect(NewPostManager.user_needs_approval?(with_check_and_post)).to eq(false)
u.user_stat.post_count = 0
u.trust_level = 1
with_check_tl1 = NewPostManager.new(u,{first_post_checks: true})
expect(NewPostManager.user_needs_approval?(with_check_tl1)).to eq(false)