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
3cb2c897
Commit
3cb2c897
authored
Dec 19, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve EE-specific BlocksJsonSerialization test failures
parent
73ca7751
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
ee/app/views/projects/issues/service_desk.html.haml
ee/app/views/projects/issues/service_desk.html.haml
+1
-1
spec/ee/spec/lib/gitlab/geo/oauth_session_spec.rb
spec/ee/spec/lib/gitlab/geo/oauth_session_spec.rb
+1
-2
No files found.
ee/app/views/projects/issues/service_desk.html.haml
View file @
3cb2c897
...
...
@@ -12,7 +12,7 @@
-
content_for
:breadcrumbs_extra
do
=
render
"projects/issues/nav_btns"
,
show_export_button:
false
,
show_rss_button:
false
-
support_bot_attrs
=
User
.
support_bot
.
to_json
(
only:
[
:id
,
:name
,
:username
,
:avatar_url
])
-
support_bot_attrs
=
User
Serializer
.
new
.
represent
(
User
.
support_bot
).
to_json
%div
{
class:
"#{container_class} js-service-desk-issues service-desk-issues"
,
data:
{
support_bot:
support_bot_attrs
}
}
.top-area
...
...
spec/ee/spec/lib/gitlab/geo/oauth_session_spec.rb
View file @
3cb2c897
...
...
@@ -7,7 +7,6 @@ describe Gitlab::Geo::OauthSession do
let
(
:dummy_state
)
{
'salt:hmac:return_to'
}
let
(
:valid_state
)
{
described_class
.
new
(
return_to:
oauth_return_to
).
generate_oauth_state
}
let
(
:access_token
)
{
FactoryBot
.
create
(
:doorkeeper_access_token
).
token
}
let
(
:user
)
{
FactoryBot
.
build
(
:user
)
}
before
do
allow
(
subject
).
to
receive
(
:oauth_app
)
{
oauth_app
}
...
...
@@ -122,7 +121,7 @@ describe Gitlab::Geo::OauthSession do
context
'on success'
do
it
'returns hashed user data'
do
allow
(
response
).
to
receive
(
:status
)
{
200
}
allow
(
response
).
to
receive
(
:parsed
)
{
user
.
to_json
}
allow
(
response
).
to
receive
(
:parsed
)
{
attributes_for
(
:user
)
}
subject
.
authenticate_with_gitlab
(
access_token
)
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