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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
1f22f70b
Commit
1f22f70b
authored
Mar 28, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EE] Reduce the diff with CE in spec/helpers/merge_requests_helper_spec.rb
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
3d22029c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
14 deletions
+21
-14
ee/spec/helpers/merge_requests_helper_spec.rb
ee/spec/helpers/merge_requests_helper_spec.rb
+19
-0
spec/helpers/merge_requests_helper_spec.rb
spec/helpers/merge_requests_helper_spec.rb
+2
-14
No files found.
ee/spec/helpers/merge_requests_helper_spec.rb
0 → 100644
View file @
1f22f70b
# frozen_string_literal: true
require
'spec_helper'
describe
MergeRequestsHelper
do
describe
'#render_items_list'
do
it
"returns one item in the list"
do
expect
(
render_items_list
([
"user"
])).
to
eq
(
"user"
)
end
it
"returns two items in the list"
do
expect
(
render_items_list
(
%w(user user1)
)).
to
eq
(
"user and user1"
)
end
it
"returns three items in the list"
do
expect
(
render_items_list
(
%w(user user1 user2)
)).
to
eq
(
"user, user1 and user2"
)
end
end
end
spec/helpers/merge_requests_helper_spec.rb
View file @
1f22f70b
# frozen_string_literal: true
require
'spec_helper'
require
'spec_helper'
describe
MergeRequestsHelper
do
describe
MergeRequestsHelper
do
...
@@ -44,20 +46,6 @@ describe MergeRequestsHelper do
...
@@ -44,20 +46,6 @@ describe MergeRequestsHelper do
end
end
end
end
describe
'#render_items_list'
do
it
"returns one item in the list"
do
expect
(
render_items_list
([
"user"
])).
to
eq
(
"user"
)
end
it
"returns two items in the list"
do
expect
(
render_items_list
(
%w(user user1)
)).
to
eq
(
"user and user1"
)
end
it
"returns three items in the list"
do
expect
(
render_items_list
(
%w(user user1 user2)
)).
to
eq
(
"user, user1 and user2"
)
end
end
describe
'#tab_link_for'
do
describe
'#tab_link_for'
do
let
(
:merge_request
)
{
create
(
:merge_request
,
:simple
)
}
let
(
:merge_request
)
{
create
(
:merge_request
,
:simple
)
}
let
(
:options
)
{
Hash
.
new
}
let
(
:options
)
{
Hash
.
new
}
...
...
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