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
37d598c2
Commit
37d598c2
authored
Apr 06, 2021
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/security/gitlab
parents
4fd8162d
637cd4dc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
app/controllers/groups/settings/applications_controller.rb
app/controllers/groups/settings/applications_controller.rb
+1
-1
spec/controllers/groups/settings/applications_controller_spec.rb
...ntrollers/groups/settings/applications_controller_spec.rb
+2
-2
No files found.
app/controllers/groups/settings/applications_controller.rb
View file @
37d598c2
...
...
@@ -65,7 +65,7 @@ module Groups
def
application_params
params
.
require
(
:doorkeeper_application
)
.
permit
(
:name
,
:redirect_uri
,
:
trusted
,
:
scopes
,
:confidential
)
.
permit
(
:name
,
:redirect_uri
,
:scopes
,
:confidential
)
.
tap
do
|
params
|
params
[
:owner
]
=
@group
end
...
...
spec/controllers/groups/settings/applications_controller_spec.rb
View file @
37d598c2
...
...
@@ -72,7 +72,7 @@ RSpec.describe Groups::Settings::ApplicationsController do
end
it
'creates the application'
do
create_params
=
attributes_for
(
:application
,
trusted:
tru
e
,
confidential:
false
,
scopes:
[
'api'
])
create_params
=
attributes_for
(
:application
,
trusted:
fals
e
,
confidential:
false
,
scopes:
[
'api'
])
expect
do
post
:create
,
params:
{
group_id:
group
,
doorkeeper_application:
create_params
}
...
...
@@ -151,7 +151,7 @@ RSpec.describe Groups::Settings::ApplicationsController do
expect
(
response
).
to
redirect_to
(
group_settings_application_path
(
group
,
application
))
expect
(
application
)
.
to
have_attributes
(
redirect_uri:
'http://example.com/'
,
trusted:
tru
e
,
confidential:
false
)
.
to
have_attributes
(
redirect_uri:
'http://example.com/'
,
trusted:
fals
e
,
confidential:
false
)
end
it
'renders the application form on errors'
do
...
...
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