diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-26 15:10:41 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-26 15:10:41 +0300 |
commit | 04f9cef437b65b4a62624936a37a99cfbfb4d61c (patch) | |
tree | 9edb887220b45ecd69f2aefa22a0fea09ed03ee1 /spec/mailers/notify_spec.rb | |
parent | 47d07def1648ffc0787fe92ea5e351ccc5e9c4a4 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers/notify_spec.rb')
-rw-r--r-- | spec/mailers/notify_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/mailers/notify_spec.rb b/spec/mailers/notify_spec.rb index b073b647532..afe709f02b4 100644 --- a/spec/mailers/notify_spec.rb +++ b/spec/mailers/notify_spec.rb @@ -831,6 +831,19 @@ RSpec.describe Notify do is_expected.to have_body_text project_member.invite_token end end + + context 'when on gitlab.com' do + before do + allow(Gitlab).to receive(:dev_env_or_com?).and_return(true) + end + + it 'has custom headers' do + aggregate_failures do + expect(subject).to have_header('X-Mailgun-Tag', 'invite_email') + expect(subject).to have_header('X-Mailgun-Variables', { 'invite_token' => project_member.invite_token }.to_json) + end + end + end end describe 'project invitation accepted' do |