search for: send_empty_shirt_size_notif

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

2014 Feb 11
0
Cucumber test question
...sh you had end Model: class StaffInfo < ActiveRecord::Base belongs_to :person scope :empty_shirt_fields, -> { where('shirt_size in (?)', [nil, '']) } 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 wa...