mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
one more test
This commit is contained in:
parent
bafdf9290d
commit
e26688c112
1 changed files with 5 additions and 0 deletions
|
@ -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 a new issue