diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-09 03:09:05 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-09 03:09:05 +0000 |
commit | b724fa8431b7e47130bc59249fef9167ebb2b4dc (patch) | |
tree | 10fe564a1cbc9361c7e6e8509c9312ce992418f2 /spec/mailers | |
parent | e206ab6282e81f55aa4287e063dfecb268e6f607 (diff) | |
download | gitlab-ce-b724fa8431b7e47130bc59249fef9167ebb2b4dc.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/mailers')
-rw-r--r-- | spec/mailers/emails/projects_spec.rb | 1 | ||||
-rw-r--r-- | spec/mailers/emails/releases_spec.rb | 1 | ||||
-rw-r--r-- | spec/mailers/emails/service_desk_spec.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/spec/mailers/emails/projects_spec.rb b/spec/mailers/emails/projects_spec.rb index a1f19a972f1..a5b89d16bc2 100644 --- a/spec/mailers/emails/projects_spec.rb +++ b/spec/mailers/emails/projects_spec.rb @@ -81,6 +81,7 @@ RSpec.describe Emails::Projects do context 'with environment' do let_it_be(:environment) { create(:environment, project: project) } + let(:payload) { { 'gitlab_environment_name' => environment.name } } let(:metrics_url) { metrics_project_environment_url(project, environment) } diff --git a/spec/mailers/emails/releases_spec.rb b/spec/mailers/emails/releases_spec.rb index 6ee87724c83..287971d35a8 100644 --- a/spec/mailers/emails/releases_spec.rb +++ b/spec/mailers/emails/releases_spec.rb @@ -10,6 +10,7 @@ RSpec.describe Emails::Releases do describe '#new_release_email' do let_it_be(:user) { create(:user) } let_it_be(:project) { create(:project) } + let(:release) { create(:release, project: project) } subject { Notify.new_release_email(user.id, release) } diff --git a/spec/mailers/emails/service_desk_spec.rb b/spec/mailers/emails/service_desk_spec.rb index cb74194020d..57fa990d399 100644 --- a/spec/mailers/emails/service_desk_spec.rb +++ b/spec/mailers/emails/service_desk_spec.rb @@ -14,6 +14,7 @@ RSpec.describe Emails::ServiceDesk do let_it_be(:project) { create(:project) } let_it_be(:issue) { create(:issue, project: project) } let_it_be(:email) { 'someone@gitlab.com' } + let(:template) { double(content: template_content) } before_all do |