Welcome to mirror list, hosted at ThFree Co, Russian Federation.

unconfirm_mailer_spec.rb « mailers « background_migration « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f430009989b06684a59b0bf8ebf3a2056bb56a1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::BackgroundMigration::Mailers::UnconfirmMailer do
  let(:user) { User.new(id: 1111) }
  let(:subject) { described_class.unconfirm_notification_email(user) }

  it 'contains abuse report url' do
    expect(subject.body.encoded).to include(Rails.application.routes.url_helpers.new_abuse_report_url(user_id: user.id))
  end
end