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
2503252f
Commit
2503252f
authored
Jan 21, 2020
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing key from shell doesn't need key content
parent
3aac4140
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
app/models/key.rb
app/models/key.rb
+1
-2
spec/models/key_spec.rb
spec/models/key_spec.rb
+1
-1
No files found.
app/models/key.rb
View file @
2503252f
...
...
@@ -96,8 +96,7 @@ class Key < ApplicationRecord
def
remove_from_shell
GitlabShellWorker
.
perform_async
(
:remove_key
,
shell_id
,
key
shell_id
)
end
...
...
spec/models/key_spec.rb
View file @
2503252f
...
...
@@ -189,7 +189,7 @@ describe Key, :mailer do
it
'removes key from authorized_file'
do
key
=
create
(
:personal_key
)
expect
(
GitlabShellWorker
).
to
receive
(
:perform_async
).
with
(
:remove_key
,
key
.
shell_id
,
key
.
key
)
expect
(
GitlabShellWorker
).
to
receive
(
:perform_async
).
with
(
:remove_key
,
key
.
shell_id
)
key
.
destroy
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