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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mailers/emails/issues_spec.rb')
-rw-r--r--spec/mailers/emails/issues_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/mailers/emails/issues_spec.rb b/spec/mailers/emails/issues_spec.rb
index b5f3972f38e..b35e83dfb75 100644
--- a/spec/mailers/emails/issues_spec.rb
+++ b/spec/mailers/emails/issues_spec.rb
@@ -36,6 +36,15 @@ RSpec.describe Emails::Issues, feature_category: :team_planning do
expect(subject).to have_body_text "23, 34, 58"
end
+ it "shows issuable errors with column" do
+ @results = { success: 0, error_lines: [], parse_error: false,
+ preprocess_errors:
+ { milestone_errors: { missing: { header: 'Milestone', titles: %w[15.10 15.11] } } } }
+
+ expect(subject).to have_body_text "Could not find the following milestone values in \
+#{project.full_name}: 15.10, 15.11"
+ end
+
context 'with header and footer' do
let(:results) { { success: 165, error_lines: [], parse_error: false } }