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
40c2dcb3
Commit
40c2dcb3
authored
Sep 19, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
2ee6f60a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
app/services/emails/create_service.rb
app/services/emails/create_service.rb
+3
-1
spec/controllers/oauth/applications_controller_spec.rb
spec/controllers/oauth/applications_controller_spec.rb
+1
-1
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+2
-0
No files found.
app/services/emails/create_service.rb
View file @
40c2dcb3
module
Emails
class
CreateService
<
::
Emails
::
BaseService
def
execute
@user
.
emails
.
create
(
email:
@email
)
email
=
@user
.
emails
.
create
(
email:
@email
)
log_audit_event
(
action: :create
)
email
end
end
end
spec/controllers/oauth/applications_controller_spec.rb
View file @
40c2dcb3
...
...
@@ -29,7 +29,7 @@ describe Oauth::ApplicationsController do
describe
'POST #create'
do
it
'logs the audit event'
do
stub_licensed_features
(
extended_audit_events:
true
)
sign_in
(
user
)
application
=
build
(
:oauth_application
)
...
...
spec/requests/api/users_spec.rb
View file @
40c2dcb3
...
...
@@ -474,6 +474,8 @@ describe API::Users do
end
it
"updates user with new password and forces reset on next login"
do
stub_licensed_features
(
extended_audit_events:
true
)
put
api
(
"/users/
#{
user
.
id
}
"
,
admin
),
password:
'12345678'
expect
(
response
).
to
have_http_status
(
200
)
...
...
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