diff --git a/spec/components/new_post_manager_spec.rb b/spec/components/new_post_manager_spec.rb index 01ca2af6d..2c45185c6 100644 --- a/spec/components/new_post_manager_spec.rb +++ b/spec/components/new_post_manager_spec.rb @@ -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)