summaryrefslogtreecommitdiff
path: root/spec/views/notify/pipeline_failed_email.text.erb_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views/notify/pipeline_failed_email.text.erb_spec.rb')
-rw-r--r--spec/views/notify/pipeline_failed_email.text.erb_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/views/notify/pipeline_failed_email.text.erb_spec.rb b/spec/views/notify/pipeline_failed_email.text.erb_spec.rb
index a5c31632b0d..dd637af5137 100644
--- a/spec/views/notify/pipeline_failed_email.text.erb_spec.rb
+++ b/spec/views/notify/pipeline_failed_email.text.erb_spec.rb
@@ -27,7 +27,7 @@ RSpec.describe 'notify/pipeline_failed_email.text.erb' do
it 'renders the email correctly' do
render
- expect(rendered).to have_content('Your pipeline has failed')
+ expect(rendered).to have_content("Pipeline ##{pipeline.id} has failed!")
expect(rendered).to have_content(pipeline.project.name)
expect(rendered).to have_content(pipeline.git_commit_message.truncate(50).gsub(/\s+/, ' '))
expect(rendered).to have_content(pipeline.commit.author_name)