mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 12:13:58 -06:00
one more test
This commit is contained in:
parent
bafdf9290d
commit
e26688c112
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user