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
12ea7f38
Commit
12ea7f38
authored
Mar 10, 2020
by
peterhegman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Switch to `build` to improve performance
parent
d54cce2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/helpers/users_helper_spec.rb
spec/helpers/users_helper_spec.rb
+4
-4
No files found.
spec/helpers/users_helper_spec.rb
View file @
12ea7f38
...
...
@@ -183,15 +183,15 @@ describe UsersHelper do
subject
{
helper
.
work_information
(
user
)
}
context
'when both job_title and organization are present'
do
let
(
:user
)
{
create
(
:user
,
organization:
'GitLab'
,
job_title:
'Frontend Engineer'
)
}
let
(
:user
)
{
build
(
:user
,
organization:
'GitLab'
,
job_title:
'Frontend Engineer'
)
}
it
'returns job title concat
i
nated with organization'
do
it
'returns job title concat
e
nated with organization'
do
is_expected
.
to
eq
(
'Frontend Engineer at GitLab'
)
end
end
context
'when only organization is present'
do
let
(
:user
)
{
create
(
:user
,
organization:
'GitLab'
)
}
let
(
:user
)
{
build
(
:user
,
organization:
'GitLab'
)
}
it
"returns organization"
do
is_expected
.
to
eq
(
'GitLab'
)
...
...
@@ -199,7 +199,7 @@ describe UsersHelper do
end
context
'when only job_title is present'
do
let
(
:user
)
{
create
(
:user
,
job_title:
'Frontend Engineer'
)
}
let
(
:user
)
{
build
(
:user
,
job_title:
'Frontend Engineer'
)
}
it
'returns job title'
do
is_expected
.
to
eq
(
'Frontend Engineer'
)
...
...
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