summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2019-03-28 11:17:58 +0100
committerRémy Coutable <remy@rymai.me>2019-03-28 18:02:42 +0100
commitdbe27cb428fbdbd4107365c11736fd21aaa659ba (patch)
tree9a32a25c9ea1a04b98eb9d3ea5d470da28066c94
parentaf8aa24666e448752ab4012673fe9951688a20d6 (diff)
downloadgitlab-ce-dbe27cb428fbdbd4107365c11736fd21aaa659ba.tar.gz
[CE] Reduce the diff with EE in spec/helpers/issuables_helper_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r--spec/helpers/issuables_helper_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/helpers/issuables_helper_spec.rb b/spec/helpers/issuables_helper_spec.rb
index 8b82dea2524..1d1446eaa30 100644
--- a/spec/helpers/issuables_helper_spec.rb
+++ b/spec/helpers/issuables_helper_spec.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
require 'spec_helper'
describe IssuablesHelper do
@@ -176,7 +178,7 @@ describe IssuablesHelper do
stub_commonmark_sourcepos_disabled
end
- it 'returns the correct json for an issue' do
+ it 'returns the correct data for an issue' do
issue = create(:issue, author: user, description: 'issue text')
@project = issue.project
@@ -198,7 +200,7 @@ describe IssuablesHelper do
initialDescriptionText: 'issue text',
initialTaskStatus: '0 of 0 tasks completed'
}
- expect(helper.issuable_initial_data(issue)).to eq(expected_data)
+ expect(helper.issuable_initial_data(issue)).to match(hash_including(expected_data))
end
end
end