Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
dbe27cb4
Commit
dbe27cb4
authored
Mar 28, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CE] Reduce the diff with EE in spec/helpers/issuables_helper_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
af8aa246
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/helpers/issuables_helper_spec.rb
spec/helpers/issuables_helper_spec.rb
+4
-2
No files found.
spec/helpers/issuables_helper_spec.rb
View file @
dbe27cb4
# 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment