diff options
author | Rémy Coutable <remy@rymai.me> | 2019-03-28 13:17:58 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-03-28 20:02:42 +0300 |
commit | dbe27cb428fbdbd4107365c11736fd21aaa659ba (patch) | |
tree | 9a32a25c9ea1a04b98eb9d3ea5d470da28066c94 /spec/helpers | |
parent | af8aa24666e448752ab4012673fe9951688a20d6 (diff) |
[CE] Reduce the diff with EE in spec/helpers/issuables_helper_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/issuables_helper_spec.rb | 6 |
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 |