Skip to content
  • Georges Racinet's avatar
    pipeline-emails: resist recipients being nil, RSpec tests and CI · f95f97278d0e
    Georges Racinet authored
    In practice, the feature will work for the "Pipeline Emails"
    integration, because these are triggered separately from
    regular pipeline emails, with exactly the list as given in
    the integration config.
    
    Turns out that in all RSpec tests/examples about pipeline
    emails, the list of recipients was actually `nil`, because
    that is the email of the testing user. The case hence
    seems articial, but let's not break because of that.
    
    In the new test we don't use the `deliver_to` from `EmailSpec`
    because it apparently actually reconstructs the envelop-to
    from To and Bcc values.
    
    Finally, the test in spec/models was explicitely looking
    for recipients in the Bcc field, it had to be adapted after
    CI complained.
    f95f97278d0e