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
16abde42
Commit
16abde42
authored
Sep 18, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix more spec failures
parent
12fc5458
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
ee/app/services/ee/audit_event_service.rb
ee/app/services/ee/audit_event_service.rb
+2
-2
spec/lib/audit/details_spec.rb
spec/lib/audit/details_spec.rb
+1
-1
No files found.
ee/app/services/ee/audit_event_service.rb
View file @
16abde42
...
...
@@ -101,8 +101,8 @@ module EE
@details
[
:entity_path
]
=
@entity
&
.
full_path
SecurityEvent
.
create
(
author_id:
@author
&
.
id
||
-
1
,
entity_id:
@entity
&
.
id
||
-
1
,
author_id:
@author
.
respond_to?
(
:id
)?
@author
.
id
:
-
1
,
entity_id:
@entity
.
respond_to?
(
:id
)?
@entity
.
id
:
-
1
,
entity_type:
'User'
,
details:
@details
)
...
...
spec/lib/audit/details_spec.rb
View file @
16abde42
...
...
@@ -90,7 +90,7 @@ describe Audit::Details do
end
it
'humanizes the removal action'
do
expect
(
described_class
.
humanize
(
action
)).
to
eq
(
'
Removed deploy key
'
)
expect
(
described_class
.
humanize
(
action
)).
to
eq
(
'
Changed email from a@b.com to c@b.com
'
)
end
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