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/serializers/group_child_entity_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'spec/serializers') diff --git a/spec/serializers/group_child_entity_spec.rb b/spec/serializers/group_child_entity_spec.rb index 7f2ddc9546a..d02b4c554b1 100644 --- a/spec/serializers/group_child_entity_spec.rb +++ b/spec/serializers/group_child_entity_spec.rb @@ -10,6 +10,7 @@ describe GroupChildEntity do before do allow(request).to receive(:current_user).and_return(user) + stub_commonmark_sourcepos_disabled end shared_examples 'group child json' do @@ -102,7 +103,7 @@ describe GroupChildEntity do let(:description) { ':smile:' } it 'has the correct markdown_description' do - expect(json[:markdown_description]).to eq('

😄

') + expect(json[:markdown_description]).to eq('

😄

') end end -- cgit v1.2.1