From e26688c112bced444b2bec9e083045dba0c0bd8a Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 6 Aug 2015 10:38:30 +1000 Subject: [PATCH] one more test --- spec/components/new_post_manager_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) 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)