search for: staff_record

Displaying 1 result from an estimated 1 matches for "staff_record".

Did you mean: staff_records
2014 Feb 11
0
Cucumber test question
...#39;']) } def self.check_empty_shirt_fields staff_with_missing_shirt_sizes = StaffInfo.empty_shirt_fields debugger send_empty_shirt_size_notification staff_with_missing_shirt_sizes if staff_with_missing_shirt_sizes.size > 0 end def send_empty_shirt_size_notification(staff_records) Mailer.missing_shirt_size(staff_records).deliver end end What is happening is, when I hit the 3rd test I did a check to see if the record was present (StaffInfo.count) and it was. But after running StaffInfo.check_empty_shirt_fields, I did a check for the record and it was gone. I am...