From 7bc0fbe22f0dd2c96b596b591ef5dbf3eaae8dd3 Mon Sep 17 00:00:00 2001 From: Brett Walker Date: Fri, 11 Jan 2019 18:31:00 -0600 Subject: Fix review comments including refactoring, disabling sourcepos for pipelines that don't need it, and minimizing spec changes by disabling sourcepos when not testing for it explicitly. --- spec/helpers/issuables_helper_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/helpers/issuables_helper_spec.rb') diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb index 963d3029830..a0fb3641899 100644 --- a/spec/helpers/issuables_helper_spec.rb +++ b/spec/helpers/issuables_helper_spec.rb @@ -173,6 +173,7 @@ describe IssuablesHelper do before do allow(helper).to receive(:current_user).and_return(user) allow(helper).to receive(:can?).and_return(true) + stub_commonmark_sourcepos_disabled end it 'returns the correct json for an issue' do @@ -193,7 +194,7 @@ describe IssuablesHelper do projectNamespace: @project.namespace.path, initialTitleHtml: issue.title, initialTitleText: issue.title, - initialDescriptionHtml: '

issue text

', + initialDescriptionHtml: '

issue text

', initialDescriptionText: 'issue text', initialTaskStatus: '0 of 0 tasks completed' } -- cgit v1.2.1