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
a1434b1c
Commit
a1434b1c
authored
Sep 18, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
c7cbcd00
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
ee/app/services/ee/audit_event_service.rb
ee/app/services/ee/audit_event_service.rb
+2
-2
spec/controllers/oauth/applications_controller_spec.rb
spec/controllers/oauth/applications_controller_spec.rb
+1
-1
spec/controllers/profiles/keys_controller_spec.rb
spec/controllers/profiles/keys_controller_spec.rb
+2
-2
No files found.
ee/app/services/ee/audit_event_service.rb
View file @
a1434b1c
...
@@ -101,8 +101,8 @@ module EE
...
@@ -101,8 +101,8 @@ module EE
@details
[
:entity_path
]
=
@entity
&
.
full_path
@details
[
:entity_path
]
=
@entity
&
.
full_path
SecurityEvent
.
create
(
SecurityEvent
.
create
(
author_id:
@author
.
respond_to?
(
:id
)?
@author
.
id
:
-
1
,
author_id:
@author
.
respond_to?
(
:id
)
?
@author
.
id
:
-
1
,
entity_id:
@entity
.
respond_to?
(
:id
)?
@entity
.
id
:
-
1
,
entity_id:
@entity
.
respond_to?
(
:id
)
?
@entity
.
id
:
-
1
,
entity_type:
'User'
,
entity_type:
'User'
,
details:
@details
details:
@details
)
)
...
...
spec/controllers/oauth/applications_controller_spec.rb
View file @
a1434b1c
...
@@ -33,7 +33,7 @@ describe Oauth::ApplicationsController do
...
@@ -33,7 +33,7 @@ describe Oauth::ApplicationsController do
application
=
build
(
:oauth_application
)
application
=
build
(
:oauth_application
)
application_attributes
=
application
.
attributes
.
merge
(
scopes:
[])
application_attributes
=
application
.
attributes
.
merge
(
scopes:
[])
expect
{
post
:create
,
doorkeeper_application:
application_attributes
}.
to
change
{
SecurityEvent
.
count
}.
by
(
1
)
expect
{
post
:create
,
doorkeeper_application:
application_attributes
}.
to
change
{
SecurityEvent
.
count
}.
by
(
1
)
end
end
end
end
end
end
...
...
spec/controllers/profiles/keys_controller_spec.rb
View file @
a1434b1c
...
@@ -72,8 +72,8 @@ describe Profiles::KeysController do
...
@@ -72,8 +72,8 @@ describe Profiles::KeysController do
sign_in
(
user
)
sign_in
(
user
)
key
=
build
(
:key
)
key
=
build
(
:key
)
expect
{
post
:create
,
key:
key
.
attributes
}.
to
change
{
SecurityEvent
.
count
}.
by
(
1
)
expect
{
post
:create
,
key:
key
.
attributes
}.
to
change
{
SecurityEvent
.
count
}.
by
(
1
)
end
end
end
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