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
e738b80a
Commit
e738b80a
authored
Sep 12, 2017
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more spec fixes
parent
9cc7764a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/services/users/update_service_spec.rb
spec/services/users/update_service_spec.rb
+2
-2
No files found.
spec/services/users/update_service_spec.rb
View file @
e738b80a
...
@@ -37,7 +37,7 @@ describe Users::UpdateService do
...
@@ -37,7 +37,7 @@ describe Users::UpdateService do
describe
'#execute!'
do
describe
'#execute!'
do
it
'updates the name'
do
it
'updates the name'
do
service
=
described_class
.
new
(
user
,
name:
'New Name'
)
service
=
described_class
.
new
(
user
,
user
,
name:
'New Name'
)
expect
(
service
).
not_to
receive
(
:notify_new_user
)
expect
(
service
).
not_to
receive
(
:notify_new_user
)
result
=
service
.
execute!
result
=
service
.
execute!
...
@@ -55,7 +55,7 @@ describe Users::UpdateService do
...
@@ -55,7 +55,7 @@ describe Users::UpdateService do
it
'fires system hooks when a new user is saved'
do
it
'fires system hooks when a new user is saved'
do
system_hook_service
=
spy
(
:system_hook_service
)
system_hook_service
=
spy
(
:system_hook_service
)
user
=
build
(
:user
)
user
=
build
(
:user
)
service
=
described_class
.
new
(
user
,
name:
'John Doe'
)
service
=
described_class
.
new
(
user
,
user
,
name:
'John Doe'
)
expect
(
service
).
to
receive
(
:notify_new_user
).
and_call_original
expect
(
service
).
to
receive
(
:notify_new_user
).
and_call_original
expect
(
service
).
to
receive
(
:system_hook_service
).
and_return
(
system_hook_service
)
expect
(
service
).
to
receive
(
:system_hook_service
).
and_return
(
system_hook_service
)
...
...
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