I want to figure out what is checked with this method and then I will test according to this.
partner.rb
def get_record_count
self.administrator? ? ContactRecord.where("partner_id in ( SELECT id FROM partners WHERE company_id = ? )",self.company_id).size : self.contact_record.size
end